cuda programming compiling and running the code in a remote machine
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
hello, i usually do cuda programming in a server which contains a tesla card, i ssh the remote machine(linux machine) and in command line i compile and run my codes. now i have to use matlab because of image processing. i have 2015a with all the necessary toolboxes.
1.can i write a matlab+cuda code and compile it in my laptop(without the GPU)
2. if 1 is true then, can i make a binary file so that i can run it in the server where i will be installing the Matlab runtime environment(<http://mathworks.com/products/compiler/mcr/)>.
thank you...
0 comentarios
Respuestas (1)
Joss Knight
el 15 de Jun. de 2016
Do you mean a MEX function? If so you can compile your function on your laptop using mex following the instructions. You do not need to have a GPU to do this, although you will need Parallel Computing Toolbox. You can then compile this along with your other MATLAB code into an executable (using the MATLAB Compiler) that can be run by the MCR on your server. Of course, if your laptop doesn't have a GPU, you won't be able to test the code, so this will be an awkward process! Fortunately any code that works for normal MATLAB arrays should work for gpuArray, at least.
0 comentarios
Ver también
Categorías
Más información sobre Get Started with GPU Coder en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!