CUDA MEX

Compile CUDA from within MATLAB! Just write cuda_mex filename.cu and it is ready.
3.9K Downloads
Updated 15 Sep 2009

View License

This small script modifies the files used by MATLAB to compile mex-functions within MATLAB so that CUDA is supported.

Once the script setup_cuda_mex.m is run you can just compile CUDA mex files with the function cuda_mex.m.

Only Win32 with Visual Studio is supported in the current version.
CUDA Toolkit and SDK required.

Cite As

Haim Avron (2024). CUDA MEX (https://www.mathworks.com/matlabcentral/fileexchange/25314-cuda-mex), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2007a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on GPU Computing in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

cuda_mex/

Version Published Release Notes
1.0.0.0