I am running into a problem installing lama and with CUDA. Following this tutorial http://libama.sourceforge.net/doc/d5/de9/page_linuxinstallation.html executing the command make I get the following error:
[kraut@Wzmbx001 build44]$ make
[ 3%] Built target log4lama
[ 3%] Building NVCC (Device) object lama/cuda/CMakeFiles/cuda_compile.dir//./cuda_compile_generated_CUDACSRUtils.cu.o
/opt/OpenFOAM/lama/src/lama/cuda/CUDACSRUtils.cu(224): error: argument of type “const float *” is incompatible with parameter of type “int”
/opt/OpenFOAM/lama/src/lama/cuda/CUDACSRUtils.cu(224): error: argument of type “const lama::IndexType *” is incompatible with parameter of type “const float *”
14 errors detected in the compilation of “/tmp/tmpxft_000039f0_00000000-7_CUDACSRUtils.cpp1.ii”.
CMake Error at cuda_compile_generated_CUDACSRUtils.cu.o.cmake:260 (message):
Error generating file
Altogether this error occurs 14 times with different types of arguements. I searched for similar problems and the closest seems to be the following:
argument of type “unsigned int *” is incompatible with parameter of type “size_t *”
However, I do not know where to change the variables as suggested in the link.
I looked for the variables in the file CUDACRSUtils.cu in /lama/src/lama/cuda, but could not find any of the variables named in the error message.
Can anybody give me a further hint, what I am doing wrong, or where I could continue looking for a fix? Thanks a lot for looking into this!