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
{{ message }}
This repository has been archived by the owner on May 17, 2020. It is now read-only.
using GPUifyLoops, Cthulhu, CuArrays, CUDAnative
function kernel!(a, b)
@inbounds @loop for i in (1:length(a);
(blockIdx().x - 1) * blockDim().x + threadIdx().x)
a[i] = b[i]
end
nothing
end
a = CuArray(rand(Float32, 10 ^ 3))
b = similar(a)
threads = 256
blocks = ceil(Int, size(a, 1) / threads)
@descend @launch(CUDA(), threads = threads, blocks = blocks, kernel!(a, b))
and then I tried adding @descend just before the kernel call inside GPUifyLoops. Both approaches failed to allow me to step into kernel!. The second one got me much closer so it seems like there may be two different issues ? Should the above MWE work ?
The text was updated successfully, but these errors were encountered:
First I tried something similar to this MWE
and then I tried adding
@descend
just before the kernel call inside GPUifyLoops. Both approaches failed to allow me to step intokernel!
. The second one got me much closer so it seems like there may be two different issues ? Should the above MWE work ?The text was updated successfully, but these errors were encountered: