Skip to content

Commit

Permalink
Update test/core/execution.jl
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
vchuravy and github-actions[bot] authored Jan 17, 2025
1 parent 269849a commit 82b5f75
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions test/core/execution.jl
Original file line number Diff line number Diff line change
Expand Up @@ -626,20 +626,19 @@ end
@test_throws "Kernel invocation uses too much parameter memory" @cuda kernel(ntuple(_->UInt64(1), 2^13))
end

@testset "symbols" begin
function pass_symbol(x, name)
i = name == :var ? 1 : 2
x[i] = true
return nothing
@testset "symbols" begin
function pass_symbol(x, name)
i = name == :var ? 1 : 2
x[i] = true
return nothing
end
x = CuArray([false, false])
@cuda pass_symbol(x, :var)
@test x[1]
@cuda pass_symbol(x, :not_var)
@test x[2]
end

x = CuArray([false, false])
@cuda pass_symbol(x, :var)
@test x[1]
@cuda pass_symbol(x, :not_var)
@test x[2]
end

end

############################################################################################
Expand Down

0 comments on commit 82b5f75

Please sign in to comment.