I am compiling some
mex files that contain CUDA code.
With the right compiler installed, and CUDA installed in the machine, the compilation would always succeed and the code then works fine. Sometimes one can also use the same compiled
.mexw64 (in the win64 case) in a different PC without the need of compiling it, as long as that PC has CUDA installed. However, if CUDA is not installed, the execution would fail because it can not find the needed libraries.
Is it possible to compile
mex files and include any library/dependency on them, so they can, in most cases, just be copypasted into a new PC and execute?