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
/opt/OpenFOAM/lama/build44/lama/cuda/CMakeFiles/cuda_compile.dir//./cuda_compile_generated_CUDACSRUtils.cu.o
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!
Best,
Kraut
Dear Kraut,
this is a known issue with our old LAMA release and newer CUDA versions.
It may be better for you to get our actual developer version from the git. Unfortunately due to reasons of export control we have to do a background check before we can grant access. Please send us a mail to lama@scai.fraunhofer.de with details to: firstname, surname, company, country.
If you want to work on the release 1.0.1, please let us know. Then we will work on a patch for you.
Another question in advance: do you want to use LAMA within OpenFOAM? Please let us know, because it is not in the release nor in our open source developer version.
Kind regards from the LAMA team