Thanks a lot Qianqian, this is very helpful because it allowed me to work with native cuda and to avoid the memory saturation.
Just to understand: when you compile with cmake .. -DBUILD_CUDA = on there are 2 more binaries compiled: /bin/mmciii and /mmclab/mmciii.mexa64.
Under matlab mmciii(‘gpuinfo’) gives the following error:
Invalid MEX-file '/home/andreafarina/Documents/MCXStudio/MATLAB/club/mmciii.mexa64':
/home/andreafarina/Documents/MCXStudio/MATLAB/mmclab/mmciii.mexa64: undefined symbol:
mesh_saveweight
If I compile with make cuda and make cudamex all works: a single mex file is generated, and I can switch computation with cfg.compute = ‘cuda’ or ‘opecl’.
Is there any difference between the two compiled versions?
Thanks a lot again!
Best regards
Andrea