3 ms·
Yes but can you do that from Julia without writing CUDA/OpenCL code? I'm happy that Julia supports GPU programming for simple code, but I don't see how you can
by 0-_-0 8y ago
Yes but can you do that from Julia without writing CUDA/OpenCL code?
I'm happy that Julia supports GPU programming for simple code, but I don't see how you can run algorithms with inter-thread communication.
- simondanisch 8y agoThat's how you do it: https://github.com/JuliaGPU/GPUArrays.jl/blob/master/src/linalg.jl#L29 https://github.com/JuliaGPU/GPUArrays.jl/blob/master/src/lin... Or directly with cuda shfl intrinsics: https://github.com/JuliaGPU/CUDAnative.jl/blob/b249dfd145501632695cc6e03cdf98e49f5c8708/examples/reduce/reduce.jl#L22 https://github.com/JuliaGPU/CUDAnative.jl/blob/b249dfd145501...
- 0-_-0 8y agoOh cool! Thanks!
- byt143 8y agoYes you can.