Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

[sundials-users] Build failing with "Unknown CMake command print_warning"

7 views
Skip to first unread message

NATHAN MARSHAK

unread,
Aug 5, 2024, 8:03:37 PM8/5/24
to SUNDIAL...@listserv.llnl.gov
Greetings,

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

Balos, Cody

unread,
Aug 5, 2024, 8:06:02 PM8/5/24
to SUNDIAL...@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 MARSHAK

unread,
Aug 6, 2024, 1:51:09 PM8/6/24
to SUNDIAL...@listserv.llnl.gov
That worked, thanks!

- Nathan

Reply all
Reply to author
Forward
0 new messages