You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for this nice package. I'm just getting started but ran into an issue when trying to GPU-ize an existing function that takes keyword arguments. Is this possible? I'm getting a syntax error when passing such a function as an argument to the @cuda macro (MWE below).
This simple kernel works fine when I pass a positional argument:
julia>using CUDA:@cuda, @cushow
julia>functionkernel1(foo::Integer)
@cushow foo
returnend
kernel1 (generic function with 1 method)
julia>@cudakernel1(1)
foo =1
CUDA.HostKernel forkernel1(Int64)
But I get a syntax error when I pass a keyword argument instead:
Hi,
Thanks for this nice package. I'm just getting started but ran into an issue when trying to GPU-ize an existing function that takes keyword arguments. Is this possible? I'm getting a syntax error when passing such a function as an argument to the
@cuda
macro (MWE below).This simple kernel works fine when I pass a positional argument:
But I get a syntax error when I pass a keyword argument instead:
Version info
The text was updated successfully, but these errors were encountered: