From 70588cdfa66e0a9784f0e63ca6269d7fdd8b9b1f Mon Sep 17 00:00:00 2001 From: Prabhat Kumar Date: Wed, 27 Mar 2024 13:15:40 -0700 Subject: [PATCH] fix cuda compilation --- ExampleCodes/SUNDIALS/Exec/GNUmakefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ExampleCodes/SUNDIALS/Exec/GNUmakefile b/ExampleCodes/SUNDIALS/Exec/GNUmakefile index de9ec8e8..1d1bc5a2 100644 --- a/ExampleCodes/SUNDIALS/Exec/GNUmakefile +++ b/ExampleCodes/SUNDIALS/Exec/GNUmakefile @@ -29,6 +29,11 @@ LIBRARY_LOCATIONS += $(SUNDIALS_LIB_DIR) LIBRARIES += -L$(SUNDIALS_LIB_DIR) -lsundials_cvode LIBRARIES += -L$(SUNDIALS_LIB_DIR) -lsundials_arkode LIBRARIES += -L$(SUNDIALS_LIB_DIR) -lsundials_nvecmanyvector + +ifeq ($(USE_CUDA),TRUE) +LIBRARIES += -L$(SUNDIALS_LIB_DIR) -lsundials_nveccuda +endif + endif include $(AMREX_HOME)/Src/Base/Make.package