From 7da397eb8f596a422c19fb621f0dba59d0830fdc Mon Sep 17 00:00:00 2001 From: Valentin Churavy Date: Wed, 5 Mar 2025 18:59:20 +0100 Subject: [PATCH 1/3] Remove CPU(static=true) test --- test/runtests.jl | 9 --------- 1 file changed, 9 deletions(-) diff --git a/test/runtests.jl b/test/runtests.jl index 81ebb19e7..a3ce30838 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -10,15 +10,6 @@ include("testsuite.jl") Testsuite.testsuite(CPU, "CPU", Base, Array, CPUBackendArray) end -@kernel function kern_static(A) - I = @index(Global) - A[I] = Threads.threadid() -end - -A = zeros(Int, Threads.nthreads()) -kern_static(CPU(static = true), (1,))(A, ndrange = length(A)) -@test A == 1:Threads.nthreads() - if Base.JLOptions().check_bounds == 0 || Base.JLOptions().check_bounds == 1 # testing bounds errors @kernel inbounds = false function my_bounded_kernel(a) From d8b620d2943587364e4426af5ff867761e0e1140 Mon Sep 17 00:00:00 2001 From: Valentin Churavy Date: Mon, 10 Mar 2025 15:05:03 +0100 Subject: [PATCH 2/3] remove checkbounds tests --- test/runtests.jl | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/test/runtests.jl b/test/runtests.jl index a3ce30838..977b0fec7 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -10,23 +10,6 @@ include("testsuite.jl") Testsuite.testsuite(CPU, "CPU", Base, Array, CPUBackendArray) end -if Base.JLOptions().check_bounds == 0 || Base.JLOptions().check_bounds == 1 - # testing bounds errors - @kernel inbounds = false function my_bounded_kernel(a) - idx = @index(Global, Linear) - a[idx] = 0 - end - @test_throws BoundsError(Int64[], (1,)) my_bounded_kernel(CPU())(Int[], ndrange = 1) -end - -if Base.JLOptions().check_bounds == 0 || Base.JLOptions().check_bounds == 2 - @kernel inbounds = true function my_bounded_kernel(a) - idx = @index(Global, Linear) - a[idx] = 0 - end - @test nothing == my_inbounds_kernel(CPU())(Int[], ndrange = 1) -end - struct NewBackend <: KernelAbstractions.GPU end @testset "Default host implementation" begin backend = NewBackend() @@ -51,9 +34,6 @@ struct NewBackend <: KernelAbstractions.GPU end @test_throws ErrorException KernelAbstractions.priority!(backend, :middle) @test KernelAbstractions.functional(backend) === missing - - kernel = my_no_cpu_kernel(backend) - @test_throws MethodError kernel() end From a6b3a97336c997fb51beb035d609477c8ad7714f Mon Sep 17 00:00:00 2001 From: Valentin Churavy Date: Wed, 12 Mar 2025 10:27:44 +0100 Subject: [PATCH 3/3] CUDA project --- cuda/Project.toml | 3 --- 1 file changed, 3 deletions(-) delete mode 100644 cuda/Project.toml diff --git a/cuda/Project.toml b/cuda/Project.toml deleted file mode 100644 index 94cb78b1d..000000000 --- a/cuda/Project.toml +++ /dev/null @@ -1,3 +0,0 @@ -[deps] -CUDA = "052768ef-5323-5732-b1bb-66c8b64840ba" -KernelAbstractions = "63c18a36-062a-441e-b654-da1e3ab1ce7c"