@@ -10,32 +10,6 @@ include("testsuite.jl")
10
10
Testsuite. testsuite (CPU, " CPU" , Base, Array, CPUBackendArray)
11
11
end
12
12
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
-
39
13
struct NewBackend <: KernelAbstractions.GPU end
40
14
@testset " Default host implementation" begin
41
15
backend = NewBackend ()
@@ -60,9 +34,6 @@ struct NewBackend <: KernelAbstractions.GPU end
60
34
@test_throws ErrorException KernelAbstractions. priority! (backend, :middle )
61
35
62
36
@test KernelAbstractions. functional (backend) === missing
63
-
64
- kernel = my_no_cpu_kernel (backend)
65
- @test_throws MethodError kernel ()
66
37
end
67
38
68
39
0 commit comments