Hi FS experts,
My colleague is trying to compile FreeSurfer by configuring with a "--with-cuda" flag. The build process stopped with the error message:
===== em_register_cuda.cu(347): error: calling a host function("LinearGenerator::LinearGenerator") from a __device__/__global__ function("TransformLogps") is not allowed
em_register_cuda.cu(350): error: calling a host function("LinearGenerator::LinearGenerator") from a __device__/__global__ function("TransformLogps") is not allowed
em_register_cuda.cu(353): error: calling a host function("LinearGenerator::LinearGenerator") from a __device__/__global__ function("TransformLogps") is not allowed
em_register_cuda.cu(357): error: calling a host function("TransformGenerator::TransformGenerator") from a __device__/__global__ function("TransformLogps") is not allowed
4 errors detected in the compilation of ... =====
FYI, the build environment is as follows: GeForce GTX 690 CUDA Toolkit 4.2 CentOS 6.2
Are there any specific requirements for building CUDA-enabled FreeSurfer?
Any information/help would be appreciated.
Thanks, Akio
freesurfer@nmr.mgh.harvard.edu