Matrix Transposition indexing in DArray in CUDA
@jpsamaroo ci sta già lavorando.
Dal 19/7/2024.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
I was following along the https://github.com/jpsamaroo/DaggerWorkshop2024 and noticed that matrix transposition does not seem to work on NVIDIA GPUs for me.
Sorry if this is a bit brief, ask questions if there is something missing.
julia> scope
UnionScope:
ExactScope: processor == CuArrayDeviceProc(worker 1, device 0, uuid b8c8a4da-6ec1-2a9e-fda1-1e5e12ba47f1)
Dagger.with_options(;scope) do
# Allocated directly on the GPU
DA = rand(AutoBlocks(), Float32, 64, 64)
# Broadcast is GPU-compatible
DB = DA .* 3f0
# Matmul is no problem!
DC = DB * DB'
# Finally, any map-reduce algorithm is easy enough
# sum(DC; dims=1)
end
The error is
ERROR: DTaskFailedException:
Root Exception Type: ErrorException
Root Exception:
Scalar indexing is disallowed.
Invocation of getindex resulted in scalar indexing of a GPU array.
This is typically caused by calling an iterating implementation of a method.
Such implementations *do not* execute on the GPU, but very slowly on the CPU,
and therefore should be avoided.
If you want to allow scalar iteration, use `allowscalar` or `@allowscalar`
to enable scalar iteration globally or for the operations in question.
Stacktrace:
Julia Version 1.11.0-rc1
Commit 3a35aec36d1 (2024-06-25 10:23 UTC)
Build Info:
Official https://julialang.org/ release
Platform Info:
OS: Linux (x86_64-linux-gnu)
CPU: 20 × Intel(R) Core(TM) i9-10900K CPU @ 3.70GHz
WORD_SIZE: 64
LLVM: libLLVM-16.0.6 (ORCJIT, skylake)
Threads: 20 default, 0 interactive, 10 GC (on 20 virtual cores)
Environment:
JULIA_DEBUG =
⌃ [052768ef] CUDA v5.4.2
[d58978e5] Dagger v0.18.12 `https://github.com/JuliaParallel/Dagger.jl.git#jps/workshop-2024`
[68e73e28] DaggerGPU v0.2.0 `https://github.com/JuliaGPU/DaggerGPU.jl.git#master`
PS: Thanks for the talk and enjoy the conference @jpsamaroo
- Lingua principale
- Julia
- Stelle
- 734
- Fork
- 94
- Merge medio
- 4g 18h
- PR unite (30g)
- 2
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di JuliaParallel/Dagger.jl
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 38/100
JuliaParallel/Dagger.jl#786 · 1 commento ·
-
MPI: tasks with acceleration=DistributedAcceleration() go missing when ranks spawn them independentlyForse già presa @AnnaLena77 l’ha presa 39 giorni fa. Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 15/100
JuliaParallel/Dagger.jl#778 · 1 commento ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 55/100
JuliaParallel/Dagger.jl#759 · 3 commenti ·
-
bug datadeps
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
JuliaParallel/Dagger.jl#665 · 3 commenti ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 30/100
JuliaParallel/Dagger.jl#661 · 1 commento ·
Tutte le issue di JuliaParallel/Dagger.jl
Issue simili
-
docs
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
-
path: splitext treats directory references and leading dots as extensionsForse già presa @Hiten0305l l’ha presa oggi. Aperta
Difficoltà 2/5 Mezza giornata Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
JuliaRegistries/RegistryCI.jl#758 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
JuliaParallel/Hwloc.jl#93 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
I maintainer di solito rispondono entro 1 giorno