Closed mark-petersen closed 1 year ago
Before this change, I get the compile error:
cd cpp/build/
source cmake_perlmutter_gnu_gpu.sh
make
...
[ 30%] Linking CXX executable serial
/usr/bin/ld: cannot find -lcufft: No such file or directory
I asked the nersc consult desk, who recommended this:
% module load PrgEnv-nvidia
% CC -o cufft_example cufft_example.cu -lcufft
Where the example script is here: cufft_example.cu
After this change, compile works to completion.
In order to compile for
YAKL_ARCH="CUDA"
on perlmutter, we needmodule load PrgEnv-nvidia
and need to use c++ wrapperMAKE_CXX_COMPILER=CC
.