-
Notifications
You must be signed in to change notification settings - Fork 29
error CUDADevice not defined #93
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
Comments
I think this should work. CI has KernelAbstractions = "0.5.2", maybe 0.6 needs some change? Edit -- CI with 0.6 fails, but with "UndefVarError: CUDADevice not defined" rather than scalar indexing: https://buildkite.com/julialang/tullio-dot-jl/builds/87#81ab0814-e2dc-4c38-876b-07ef2afc15d7 |
I see "CUDADevice not defined" as well in a longer code from which I extracted the mwe in OP. Don't know why I get these two different behaviours |
I observe the scalar indexing error also on KernelAbstractions@v0.5.2 |
One question is whether you are sure you have loaded KernelAbstractions? Like If it does, this is the core of what it generates, which is the next step:
|
Ah! I forgot julia> using Tullio, CUDA, KernelAbstractions
julia> A, B, C = CUDA.rand(5,321,482), CUDA.rand(5,321,482), CUDA.rand(5,482);
julia> @tullio C[i,j] = A[i,k,j] * B[i,k,j]
ERROR: UndefVarError: CUDADevice not defined
Stacktrace:
[1] 𝒜𝒸𝓉!
@ ~/.julia/packages/Tullio/PhxRJ/src/macro.jl:1167 [inlined]
[2] 𝒜𝒸𝓉!
@ ~/.julia/packages/Tullio/PhxRJ/src/macro.jl:1166 [inlined]
[3] threader(fun!::var"#𝒜𝒸𝓉!#5", ::Type{CuArray{Float32, N} where N}, Z::CuArray{Float32, 2}, As::Tuple{CuArray{Float32, 3}, CuArray{Float32, 3}}, Is::Tuple{Base.OneTo{Int64}, Base.OneTo{Int64}}, Js::Tuple{Base.OneTo{Int64}}, redfun::Function, block::Int64, keep::Nothing)
@ Tullio ~/.julia/packages/Tullio/PhxRJ/src/eval.jl:90
[4] top-level scope
@ ~/.julia/packages/Tullio/PhxRJ/src/macro.jl:1001 |
It's possible you now need That seems to make CI happy: https://buildkite.com/julialang/tullio-dot-jl/builds/89#bbe05b24-4b59-46ed-b67e-ecca729a9300/194-311 |
makes sense, thanks! |
I'm having this problem again. I think CUDAKernels moved to the CUDA.jl package (?), and now |
I think that's #168 now, but I haven't got to trying to fix it, sorry. |
Uh oh!
There was an error while loading. Please reload this page.
Hi,
is this error known/expected?
Test on
The text was updated successfully, but these errors were encountered: