Skip to content

Commit 2c049ea

Browse files
authored
Include OpenCL in reflection test exemptions. (#521)
1 parent 4d026f7 commit 2c049ea

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/reflection.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ function test_typed_kernel_dynamic(backend, backend_str, ArrayT)
2323
else
2424
@ka_code_typed kernel(A, ndrange = size(A), workgroupsize = (32, 32))
2525
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"]
2727
@test_broken isa(res, Pair{Core.CodeInfo, DataType})
2828
else
2929
@test isa(res, Pair{Core.CodeInfo, DataType})
@@ -37,7 +37,7 @@ function test_typed_kernel_dynamic_no_info(backend, backend_str, ArrayT)
3737
C = similar(A)
3838
kernel = add3(backend())
3939
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"]
4141
@test_broken isa(res, Pair{Core.CodeInfo, DataType})
4242
else
4343
@test isa(res, Pair{Core.CodeInfo, DataType})
@@ -53,7 +53,7 @@ function test_typed_kernel_static(backend, backend_str, ArrayT)
5353
mul2(backend(), (32, 32))
5454
end
5555
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"]
5757
@test_broken isa(res, Pair{Core.CodeInfo, DataType})
5858
else
5959
@test isa(res, Pair{Core.CodeInfo, DataType})
@@ -83,7 +83,7 @@ function test_expr_kernel(backend, backend_str, ArrayT)
8383
addi(backend(), (32, 32))
8484
end
8585
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"]
8787
@test_broken isa(res, Pair{Core.CodeInfo, DataType})
8888
else
8989
@test isa(res, Pair{Core.CodeInfo, DataType})

0 commit comments

Comments
 (0)