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
julia> AMDGPU.allowscalar() do
b[1]
end
ERROR: MethodError: no method matching allowscalar(::var"#5#6")
Closest candidates are:
allowscalar(::Bool)
@ AMDGPU ~/.julia/packages/AMDGPU/Debbg/src/AMDGPU.jl:128
Stacktrace:
[1] top-level scope
@ REPL[13]:1
Does not work on AMD.
The @allowscalar macro and allowscalar(true) work as intended
The warnings suggest that AMDGPU.allowscalar() do ... end should work:
┌ Warning: It's not recommended to use allowscalar([true]) to allow scalar indexing.
│ Instead, use `allowscalar() do end` or `@allowscalar` to denote exactly which operations can use scalar operations.
└ @ GPUArraysCore ~/.julia/packages/GPUArraysCore/GMsgk/src/GPUArraysCore.jl:188
The text was updated successfully, but these errors were encountered:
leios
changed the title
allowscalar do block functionality missing?allowscalar do block functionality missing?
Jan 8, 2025
Note on scalar indexing with AMDGPU:
Works in CUDA
Does not work on AMD.
The
@allowscalar
macro andallowscalar(true)
work as intendedThe warnings suggest that
AMDGPU.allowscalar() do ... end
should work:The text was updated successfully, but these errors were encountered: