JuliaGPU / JuliaGPU/Adapt.jl

Use with multiple wrappers

Open
#21 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Julia
Stars
120
Forks
29
Avg merge
1d 18h
Merged PRs (30d)
1

Description

```julia
using CuArrays
CuArrays.allowscalar(false)
cu(reshape(cu(randn(2,2))', 1,4)) # fails at displaying
CuArray(reshape(cu(randn(2,2))', 1,4)) # fails at the outermost call to CuArray
```

Details on Julia:
```
julia> versioninfo()
Julia Version 1.3.0-rc5.1
Commit 36c4eb251e (2019-11-17 19:04 UTC)
Platform Info:
OS: Linux (x86_64-linux-gnu)
CPU: Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-6.0.1 (ORCJIT, skylake)
Environment:
JULIA_NUM_THREADS = 6

[3895d2a7] CUDAapi v2.0.0
[c5f51814] CUDAdrv v4.0.4
[be33ccc6] CUDAnative v2.5.5
[3a865a2d] CuArrays v1.4.7

```
I hit this error all the time while backpropagating using Tracker, not sure which adjoint definition causes this error though.

Both the adjoint and the reshape are required for the error to appear, either one of them by themselves works alright.

Contributor guide

No contributing guide indexed for this repository

Research direction

Run the Julia 1.3 reproduction with CuArrays.allowscalar(false), then isolate the interaction between the adjoint and reshape cases, since each works alone. Trace the outer CuArray and display failures across the multiple-wrapper paths; done means the specific failing wrapper interaction is identified and reproducible.

Written by the indexing model from the issue text.

Assessment

Tech stack
julia
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.