-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Usage example #28
Comments
Trying out this code yields an error julia> A_gpu = Dagger.@spawn CUDA.Matrix(A)
Error in eager scheduler:
MethodError: no method matching get_parent(::CUDAExt.CuArrayDeviceProc) The Readme in this repo points in that direction
but it's not clear to me what to do, as the Dagger.jl docs have no mention of DaggerGPU arrays... |
Actually, it seems However, I did find the following line in the tests: c = Dagger.with_options(;scope=Dagger.scope(cuda_gpu=1)) do
@test fetch(Dagger.@spawn isongpu(b))
Dagger.@spawn sum(b)
end and indeed wrapping my code in this scope seems to do the trick. |
Closes JuliaGPU#28.
Hello, would it be possible to add a usage example? I couldn't find one here, nor in the Dagger.jl docs.
For example, let's say I have the following task:
Intuitively, with Dagger, I'd just try to write it like this:
What role does
DaggerGPU.jl
play here? It seems I could even do this with justDagger.jl
?The text was updated successfully, but these errors were encountered: