I am attempting to build SUNDIALS 7.1.1. Previously, I have been able to get
7.0.0 to compile successfully. It is now failing with the message:
> CMake Error at cmake/SundialsDeprecated.cmake:150 (print_warning):
> Unknown CMake command "print_warning".
> Call Stack (most recent call first):
> CMakeLists.txt:161 (include)
I am using cmake from the command line with the following options:
> cmake \
> -DCMAKE_INSTALL_PREFIX=${INSTALL_PREFIX} \
> -DCMAKE_INSTALL_LIBDIR=lib \
> -DCMAKE_VERBOSE_MAKEFILE:BOOL=OFF \
> -DCMAKE_C_COMPILER=$(which gcc) \
> -DCMAKE_CXX_COMPILER=$(which g++) \
> -DCMAKE_CUDA_HOST_COMPILER=$(which g++) \
> -DEXAMPLES_INSTALL_PATH=${INSTALL_PREFIX}/examples \
> -DCMAKE_BUILD_TYPE=Release \
> -DCMAKE_CUDA_FLAGS="-DSUNDIALS_DEBUG_CUDA_LASTERROR" \
> -DSUNDIALS_BUILD_PACKAGE_FUSED_KERNELS=ON \
> -DCMAKE_C_FLAGS_RELEASE="-O3 -DNDEBUG" \
> -DCMAKE_CXX_FLAGS_RELEASE="-O3 -DNDEBUG" \
> -DENABLE_CUDA=ON \
> -DENABLE_MPI=OFF \
> -DENABLE_OPENMP=ON \
> -DBUILD_FORTRAN_MODULE_INTERFACE=OFF \
> -DSUNDIALS_INDEX_SIZE:INT=32 \
> -DCUDA_ARCH=sm_70 ../
Am I doing something obviously wrong?
Sincerely,
Nathan
############################
To unsubscribe from the SUNDIALS-USERS list:
write to: mailto:SUNDIALS-USERS-...@LISTSERV.LLNL.GOV
Hi Nathan,
This seems to be a bug, but one with an easy workaround. Simply change CUDA_ARCH to CMAKE_CUDA_ARCHITECTURES and pass “70” instead of “sm_70”.
Regards,
Cody
- Nathan