Skip to content

NaiL23/Accelerating-MATLAB-with-GPU-Computing-Example-Codes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Accelerating MATLAB with GPU Computing Example Codes

Modified code examples for book Suh, Kim: Accelerating MATLAB with GPU Computing: A Primer with Examples.

In the official implementation (download), codes are organized and compiled in a pipeline as below:

  • include *.h in .*cu and *.cpp

  • run nvcc -c *.cu in cmd -> *.obj

  • mex *.cpp *.obj -lcudart -L".../lib/x64" -> *.mexw64

  • call the mex executable through *.m

However, in this repo, all CUDA codes are integrated into one *.cu file and can be straightforward compiled via:

(CUDA accelerated function)

mexcuda *.cu

or (C++ implemented function)

mex *.cpp

About

Modified code examples for book Suh, Kim: Accelerating MATLAB with GPU Computing: A Primer with Examples.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published