Skip to content

Commit ff726d0

Browse files
authored
Remove old CPU test (#580)
1 parent 03a2c55 commit ff726d0

File tree

2 files changed

+0
-32
lines changed

2 files changed

+0
-32
lines changed

cuda/Project.toml

Lines changed: 0 additions & 3 deletions
This file was deleted.

test/runtests.jl

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -10,32 +10,6 @@ include("testsuite.jl")
1010
Testsuite.testsuite(CPU, "CPU", Base, Array, CPUBackendArray)
1111
end
1212

13-
@kernel function kern_static(A)
14-
I = @index(Global)
15-
A[I] = Threads.threadid()
16-
end
17-
18-
A = zeros(Int, Threads.nthreads())
19-
kern_static(CPU(static = true), (1,))(A, ndrange = length(A))
20-
@test A == 1:Threads.nthreads()
21-
22-
if Base.JLOptions().check_bounds == 0 || Base.JLOptions().check_bounds == 1
23-
# testing bounds errors
24-
@kernel inbounds = false function my_bounded_kernel(a)
25-
idx = @index(Global, Linear)
26-
a[idx] = 0
27-
end
28-
@test_throws BoundsError(Int64[], (1,)) my_bounded_kernel(CPU())(Int[], ndrange = 1)
29-
end
30-
31-
if Base.JLOptions().check_bounds == 0 || Base.JLOptions().check_bounds == 2
32-
@kernel inbounds = true function my_bounded_kernel(a)
33-
idx = @index(Global, Linear)
34-
a[idx] = 0
35-
end
36-
@test nothing == my_inbounds_kernel(CPU())(Int[], ndrange = 1)
37-
end
38-
3913
struct NewBackend <: KernelAbstractions.GPU end
4014
@testset "Default host implementation" begin
4115
backend = NewBackend()
@@ -60,9 +34,6 @@ struct NewBackend <: KernelAbstractions.GPU end
6034
@test_throws ErrorException KernelAbstractions.priority!(backend, :middle)
6135

6236
@test KernelAbstractions.functional(backend) === missing
63-
64-
kernel = my_no_cpu_kernel(backend)
65-
@test_throws MethodError kernel()
6637
end
6738

6839

0 commit comments

Comments
 (0)