@@ -23,7 +23,7 @@ function test_typed_kernel_dynamic(backend, backend_str, ArrayT)
23
23
else
24
24
@ka_code_typed kernel (A, ndrange = size (A), workgroupsize = (32 , 32 ))
25
25
end
26
- if backend_str == " CUDA" || backend_str == " ROCM" || backend_str == " oneAPI" || backend_str == " Metal"
26
+ if backend_str in [ " CUDA" , " ROCM" , " oneAPI" , " Metal" , " OpenCL " ]
27
27
@test_broken isa (res, Pair{Core. CodeInfo, DataType})
28
28
else
29
29
@test isa (res, Pair{Core. CodeInfo, DataType})
@@ -37,7 +37,7 @@ function test_typed_kernel_dynamic_no_info(backend, backend_str, ArrayT)
37
37
C = similar (A)
38
38
kernel = add3 (backend ())
39
39
res = @ka_code_typed kernel (A, B, C, ndrange = size (A))
40
- if backend_str == " CUDA" || backend_str == " ROCM" || backend_str == " oneAPI" || backend_str == " Metal"
40
+ if backend_str in [ " CUDA" , " ROCM" , " oneAPI" , " Metal" , " OpenCL " ]
41
41
@test_broken isa (res, Pair{Core. CodeInfo, DataType})
42
42
else
43
43
@test isa (res, Pair{Core. CodeInfo, DataType})
@@ -53,7 +53,7 @@ function test_typed_kernel_static(backend, backend_str, ArrayT)
53
53
mul2 (backend (), (32 , 32 ))
54
54
end
55
55
res = @ka_code_typed kernel (A, ndrange = size (A))
56
- if backend_str == " CUDA" || backend_str == " ROCM" || backend_str == " oneAPI" || backend_str == " Metal"
56
+ if backend_str in [ " CUDA" , " ROCM" , " oneAPI" , " Metal" , " OpenCL " ]
57
57
@test_broken isa (res, Pair{Core. CodeInfo, DataType})
58
58
else
59
59
@test isa (res, Pair{Core. CodeInfo, DataType})
@@ -83,7 +83,7 @@ function test_expr_kernel(backend, backend_str, ArrayT)
83
83
addi (backend (), (32 , 32 ))
84
84
end
85
85
res = @ka_code_typed kernel (A, C, 1 + 2 , ndrange = size (A))
86
- if backend_str == " CUDA" || backend_str == " ROCM" || backend_str == " oneAPI" || backend_str == " Metal"
86
+ if backend_str in [ " CUDA" , " ROCM" , " oneAPI" , " Metal" , " OpenCL " ]
87
87
@test_broken isa (res, Pair{Core. CodeInfo, DataType})
88
88
else
89
89
@test isa (res, Pair{Core. CodeInfo, DataType})
0 commit comments