Skip to content

Commit

Permalink
Include OpenCL in reflection test exemptions. (#521)
Browse files Browse the repository at this point in the history
  • Loading branch information
maleadt authored Sep 17, 2024
1 parent 4d026f7 commit 2c049ea
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/reflection.jl
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function test_typed_kernel_dynamic(backend, backend_str, ArrayT)
else
@ka_code_typed kernel(A, ndrange = size(A), workgroupsize = (32, 32))
end
if backend_str == "CUDA" || backend_str == "ROCM" || backend_str == "oneAPI" || backend_str == "Metal"
if backend_str in ["CUDA", "ROCM", "oneAPI", "Metal", "OpenCL"]
@test_broken isa(res, Pair{Core.CodeInfo, DataType})
else
@test isa(res, Pair{Core.CodeInfo, DataType})
Expand All @@ -37,7 +37,7 @@ function test_typed_kernel_dynamic_no_info(backend, backend_str, ArrayT)
C = similar(A)
kernel = add3(backend())
res = @ka_code_typed kernel(A, B, C, ndrange = size(A))
if backend_str == "CUDA" || backend_str == "ROCM" || backend_str == "oneAPI" || backend_str == "Metal"
if backend_str in ["CUDA", "ROCM", "oneAPI", "Metal", "OpenCL"]
@test_broken isa(res, Pair{Core.CodeInfo, DataType})
else
@test isa(res, Pair{Core.CodeInfo, DataType})
Expand All @@ -53,7 +53,7 @@ function test_typed_kernel_static(backend, backend_str, ArrayT)
mul2(backend(), (32, 32))
end
res = @ka_code_typed kernel(A, ndrange = size(A))
if backend_str == "CUDA" || backend_str == "ROCM" || backend_str == "oneAPI" || backend_str == "Metal"
if backend_str in ["CUDA", "ROCM", "oneAPI", "Metal", "OpenCL"]
@test_broken isa(res, Pair{Core.CodeInfo, DataType})
else
@test isa(res, Pair{Core.CodeInfo, DataType})
Expand Down Expand Up @@ -83,7 +83,7 @@ function test_expr_kernel(backend, backend_str, ArrayT)
addi(backend(), (32, 32))
end
res = @ka_code_typed kernel(A, C, 1 + 2, ndrange = size(A))
if backend_str == "CUDA" || backend_str == "ROCM" || backend_str == "oneAPI" || backend_str == "Metal"
if backend_str in ["CUDA", "ROCM", "oneAPI", "Metal", "OpenCL"]
@test_broken isa(res, Pair{Core.CodeInfo, DataType})
else
@test isa(res, Pair{Core.CodeInfo, DataType})
Expand Down

0 comments on commit 2c049ea

Please sign in to comment.