Skip to content

Commit d4ffa3b

Browse files
committed
add missing test
1 parent 9195d94 commit d4ffa3b

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

test/reflection.jl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ end
1515
A[I] = i + C[I]
1616
end
1717

18+
@kernel generated = true function f(::Val{N}) where {N}
19+
KernelAbstractions.Extras.@unroll $N for i in 1:10
20+
end
21+
end
22+
1823
function test_typed_kernel_dynamic(backend, backend_str, ArrayT)
1924
A = ArrayT(ones(Float32, 1024, 1024))
2025
kernel = mul2(backend())
@@ -102,5 +107,6 @@ function reflection_testsuite(backend, backend_str, ArrayT)
102107
test_typed_kernel_static(backend, backend_str, ArrayT)
103108
test_typed_kernel_no_optimize(backend, backend_str, ArrayT)
104109
test_expr_kernel(backend, backend_str, ArrayT)
110+
test_generated_kernel(backend, backend_str, ArrayT)
105111
return
106112
end

0 commit comments

Comments
 (0)