Closed blakemertz closed 5 months ago
This looks like some incompatibility in your compilers/OS combination.
Reference: https://forums.developer.nvidia.com/t/strange-errors-after-system-gcc-upgraded-to-13-1-1/252441/2 https://forums.developer.nvidia.com/t/identifier-float32-is-undefined-etc-cuda-12-2-0-gcc-13-1/258930
@zhi-wang thanks for the response and suggestions on the incompatibility issue. Looking at the first link on the nvidia developer forums, it appears that I am using an acceptable version of the gcc compiler (v. 12.3). The only solutions provided by the Nvidia dev are to use either 1) setting “–std=c++14” or using 2) the “–gcc-toolchain” flag and pointing to the install path. Is that a setting I need to implement in my cmake call or in CMakeLists.txt?
I think there is a flag -DSTD=14 for the cmake command to employ the c++ 14 standard. https://github.com/TinkerTools/tinker9/blob/master/doc/manual/m/install/buildwithcmake.rst
But I am still not sure if this would fix this problem.
@zhi-wang sorry this took so long to fix the problem -- I had to go back and start with a fresh install of both tinker and tinker9 before I was able to get a working system to compile everything. I didn't get the exact issue addressed, but I think it was something to do with incompatibility of my gcc version, cuda, and tinker. Anyhow, I was able to get tinker9 compiled successfully on two different GPUs both with compute capability = 86, as explained in my successful build entry: #121. Will consider this issue closed.
System specs:
My cmake call:
cmake -DCMAKE_Fortran_COMPILER=gfortran -DCOMPUTE_CAPABILITY=86 -DCUDA_DIR=/opt/nvidia/hpc_sdk/Linux_x86_64/23.9/cuda ..
Following the cmake flags and compile instructions provided at the end of issue #199 I can only get the source code 69% compiled and then get the following error message: (beginning)
(end)
Not really sure what next steps would be, as I don't have the ability to start picking through the source code.