From 82b5f75ecd912ab1dd87e506f7bf2411d8f4afaa Mon Sep 17 00:00:00 2001 From: Valentin Churavy Date: Fri, 17 Jan 2025 11:11:22 +0100 Subject: [PATCH] Update test/core/execution.jl Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- test/core/execution.jl | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/test/core/execution.jl b/test/core/execution.jl index 8235cbff13..931766f1a2 100644 --- a/test/core/execution.jl +++ b/test/core/execution.jl @@ -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 ############################################################################################