-
Notifications
You must be signed in to change notification settings - Fork 234
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
Use pointer to async_send directly instead of a wrapper function #1319
Conversation
Sure, I'll give it a try |
it crashes at the same place it used to segfault, saying ERROR: LoadError: could not load symbol "async_send":
julia: undefined symbol: async_send
Stacktrace:
[1] launch(f::CUDA.var"#13#14"{Base.Event}; stream::CuStream)
@ CUDA ~/.julia/packages/CUDA/ZRjZ5/lib/cudadrv/execution.jl:157
[2] nonblocking_synchronize
@ ~/.julia/packages/CUDA/ZRjZ5/lib/cudadrv/stream.jl:157 [inlined]
[3] macro expansion
@ ~/.julia/packages/CUDA/ZRjZ5/src/array.jl:409 [inlined]
[4] macro expansion
@ ~/.julia/packages/CUDA/ZRjZ5/src/state.jl:182 [inlined]
[5] unsafe_copyto!(dest::Matrix{Float32}, doffs::Int64, src::CuArray{Float32, 2, CUDA.Mem.DeviceBuffer}, soffs::Int64, n::Int64)
@ CUDA ~/.julia/packages/CUDA/ZRjZ5/src/array.jl:405
[6] copyto!
@ ~/.julia/packages/CUDA/ZRjZ5/src/array.jl:359 [inlined]
[7] copyto!
@ ~/.julia/packages/CUDA/ZRjZ5/src/array.jl:363 [inlined]
[8] copyto_axcheck!(dest::Matrix{Float32}, src::CuArray{Float32, 2, CUDA.Mem.DeviceBuffer})
@ Base ./abstractarray.jl:1104
[9] Array
@ ./array.jl:563 [inlined]
[10] Array
@ ./boot.jl:481 [inlined]
[11] convert
@ ./array.jl:554 [inlined]
[12] adapt_storage
@ ~/.julia/packages/Adapt/wASZA/src/arrays.jl:6 [inlined]
[13] adapt_structure
@ ~/.julia/packages/Adapt/wASZA/src/Adapt.jl:42 [inlined]
[14] adapt
@ ~/.julia/packages/Adapt/wASZA/src/Adapt.jl:40 [inlined]
[15] adapt_storage
@ ~/.julia/packages/Flux/BPPNj/src/functor.jl:75 [inlined]
[16] adapt_structure
@ ~/.julia/packages/Adapt/wASZA/src/Adapt.jl:42 [inlined]
[17] adapt
@ ~/.julia/packages/Adapt/wASZA/src/Adapt.jl:40 [inlined]
[18] #134
@ ~/.julia/packages/Flux/BPPNj/src/functor.jl:115 [inlined]
[19] fmap(f::Flux.var"#134#135", x::CuArray{Float32, 2, CUDA.Mem.DeviceBuffer}; exclude::typeof(Functors.isleaf), walk::typeof(Functors._default_walk), cache::IdDict{Any, Any})
@ Functors ~/.julia/packages/Functors/hIysk/src/functor.jl:121
[20] fmap
@ ~/.julia/packages/Functors/hIysk/src/functor.jl:120 [inlined]
[21] cpu(x::CuArray{Float32, 2, CUDA.Mem.DeviceBuffer})
@ Flux ~/.julia/packages/Flux/BPPNj/src/functor.jl:115
[truncated where it reaches my code] |
I was a silly goose. |
Success! No segfault or other issues |
Codecov Report
@@ Coverage Diff @@
## master #1319 +/- ##
==========================================
- Coverage 80.48% 79.67% -0.81%
==========================================
Files 119 119
Lines 8393 8400 +7
==========================================
- Hits 6755 6693 -62
- Misses 1638 1707 +69
Continue to review full report at Codecov.
|
Great, thanks! |
could we get a release with this fix? |
Yes, I'll work on a release today. |
thanks! |
…U#1319) Due to a Julia bug, we can't use `@cfunction` with a custom system image.
Fixes #1314
@ericphanson can you check that this fixes your issue?