How do I compile cuda library dll files so that I can use them from Matlab.
7 views (last 30 days)
Show older comments
I am aware of generating ptx file using nvcc command and then generating the kernel handle using 'parallel.gpu.CUDAKernel'. How do i use the .dll cuda library file from Matlab. In other words:
How do I generate a ptx file given .dll, .h and .lib files.
If not,
How do I use cuda library functions from Matlab
Thanks,
Pavel
0 Comments
Answers (1)
Joss Knight
on 24 Apr 2017
PTX is device code only so it's only the runtime CUDA libraries you can link in. You need to learn more about CUDA device code generation from the CUDA Toolkit documentation.
However, probably what you're really after is mexcuda, to compile your own MATLAB functions that include CUDA kernels as well as other CUDA library calls.
0 Comments
See Also
Categories
Find more on GPU Computing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!