Hi all,
I want to call another library on the GPU (external to CUDA.jl) and have the rest of the code use the high level CUDA.jl array interface.
It this possible to call an external library from CUDA.jl?
Any advice greatly appreciated!
Hi all,
I want to call another library on the GPU (external to CUDA.jl) and have the rest of the code use the high level CUDA.jl array interface.
It this possible to call an external library from CUDA.jl?
Any advice greatly appreciated!
The ability to call external libraries is not a CUDA.jl feature, but a property of Julia. If you can use any of the FFI interfaces (like ccall
) to call this library, then yes. There is one consideration though, namely whether GPU data can be shared between Julia/CUDA.jl and your external library. For this, CUDA.jl uses the “primary” context to allocate data in, and should be compatible with other libraries using the same context.