Hi FreeSurfers,
I'm trying to compile freesurfer with --enable-fermi-gpu and cuda 4. The process stopped with this error message:
make[3]: Entering directory `/home/neuro/dev/mri_em_register' /usr/local/cuda/bin/nvcc -o em_register_cuda.o -c em_register_cuda.cu -arch sm_20 --ptxas-options=-v -g -I../include -I../include/dicom -I/home/neuro/mni/current/include em_register_cuda.cu(259): error: calling a host function("LinearGenerator::LinearGenerator") from a __device__/__global__ function("TransformLogps") is not allowed
em_register_cuda.cu(262): error: calling a host function("LinearGenerator::LinearGenerator") from a __device__/__global__ function("TransformLogps") is not allowed
em_register_cuda.cu(265): error: calling a host function("LinearGenerator::LinearGenerator") from a __device__/__global__ function("TransformLogps") is not allowed
em_register_cuda.cu(269): error: calling a host function("TransformGenerator::TransformGenerator") from a __device__/__global__ function("TransformLogps") is not allowed
4 errors detected in the compilation of "/tmp/tmpxft_00007558_00000000-4_em_register_cuda.cpp1.ii". make[3]: *** [em_register_cuda.o] Error 2 make[3]: Leaving directory `/home/neuro/dev/mri_em_register' make[2]: *** [all] Error 2 make[2]: Leaving directory `/home/neuro/dev/mri_em_register' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/neuro/dev' make: *** [all] Error 2
I don't know what is going wrong... Any idea?
Thank you in advance!
On Tue, Oct 4, 2011 at 5:06 AM, Jordi Delgado jordidem@pic.es wrote:
I'm trying to compile freesurfer with --enable-fermi-gpu and cuda 4. The process stopped with this error message:
I'm not certain, but I believe CUDA 4 has thrust included. This might conflict with the version installed in the source tree. Either that, or I forgot to mark some routines as being executable on both the host and device.
Richard
freesurfer@nmr.mgh.harvard.edu