Compile MEX-function for GPU computation
mexcuda filenames
mexcuda
mexcuda option1 ... optionN filenames
mexcuda
compiles and links source files
into a shared library called a MEX-file, executable from within MATLAB.
filenames
mexcuda
is an extension of the MATLAB
mex
function. It compiles MEX-files written using
the CUDA C++ framework with NVIDIA’s nvcc
compiler,
allowing the files to define and launch GPU kernels. Only a subset of
Visual
Studio® compilers is supported for mexcuda. For details, consult the
NVIDIA toolkit
documentation. In addition, the mexcuda
function exposes the GPU MEX API to allow the MEX-file to read and write
gpuArrays.
mexcuda
builds
with the specified build options. The option1 ... optionN
filenames
option1 ... optionN
arguments
supplement or override the default mexcuda
build
configuration.