diff --git a/Project.toml b/Project.toml index bb58850e11..ee581d0287 100644 --- a/Project.toml +++ b/Project.toml @@ -1,6 +1,6 @@ name = "CUDA" uuid = "052768ef-5323-5732-b1bb-66c8b64840ba" -version = "4.4.1" +version = "4.4.2" [deps] AbstractFFTs = "621f4979-c628-5d54-868e-fcf4e3e8185c" diff --git a/lib/cudnn/Project.toml b/lib/cudnn/Project.toml index f133182f65..29a8cf3c63 100644 --- a/lib/cudnn/Project.toml +++ b/lib/cudnn/Project.toml @@ -1,7 +1,7 @@ name = "cuDNN" uuid = "02a925ec-e4fe-4b08-9a7e-0d78e3d38ccd" authors = ["Tim Besard "] -version = "1.1.0" +version = "1.1.1" [deps] CEnum = "fa961155-64e5-5f13-b03f-caf6b980ea82" diff --git a/src/device/random.jl b/src/device/random.jl index d82136e7b9..c428e28fdd 100644 --- a/src/device/random.jl +++ b/src/device/random.jl @@ -34,8 +34,6 @@ end CuDeviceArray{UInt32,1,AS.Shared}(ptr, (32,)) end -@device_override Random.make_seed() = clock(UInt32) - # generators @@ -106,9 +104,22 @@ function Random.seed!(rng::Philox2x32, seed::Integer, counter::Integer=0) return end -if VERSION >= v"1.7-" -@device_override Random.seed!(::Random._GLOBAL_RNG, seed) = - Random.seed!(Random.default_rng(), seed) +if VERSION >= v"1.11-" + # `Random.seed!(::AbstractRNG)` now passes a `nothing` seed value + Random.seed!(rng::Philox2x32, seed::Nothing) = + Random.seed!(rng, clock(UInt32)) +else + # ... where it used to call `Random_make_seed()` + @device_override Random.make_seed() = clock(UInt32) +end + +# seeding the implicit default RNG +if VERSION >= v"1.11-" + @device_override Random.seed!(seed) = + Random.seed!(Random.default_rng(), seed) +elseif VERSION >= v"1.7-" + @device_override Random.seed!(::Random._GLOBAL_RNG, seed) = + Random.seed!(Random.default_rng(), seed) end """ diff --git a/test/base/aqua.jl b/test/base/aqua.jl deleted file mode 100644 index 8ec04bf42b..0000000000 --- a/test/base/aqua.jl +++ /dev/null @@ -1,26 +0,0 @@ -using Aqua - -# FIXME: Adapt.WrappedArray contains subtypes that do not bind the N typevar -#Aqua.test_unbound_args(CUDA) - -# FIXME: we have plenty of ambiguities, let's at least ensure that we don't create more -#Aqua.test_ambiguities(CUDA) -let ambs = Aqua.detect_ambiguities(CUDA; recursive=true) - pkg_match(pkgname, pkgdir::Nothing) = false - pkg_match(pkgname, pkgdir::AbstractString) = occursin(pkgname, pkgdir) - filter!(x -> pkg_match("CUDA", pkgdir(last(x).module)), ambs) - @test length(ambs) ≤ 35 -end - -Aqua.test_undefined_exports(CUDA) -Aqua.test_stale_deps(CUDA; ignore=[:CUDA_Runtime_Discovery, :CUDA_Runtime_jll, - :SpecialFunctions]) -Aqua.test_deps_compat(CUDA) -Aqua.test_project_extras(CUDA) -Aqua.test_project_toml_formatting(CUDA) - -if VERSION ≥ v"1.7" - # on 1.6, device overrides aren't implemented using overlay method tables, - # but using world age hacks which confuse Aqua's type piracy detection. - Aqua.test_piracy(CUDA) -end