From 34ce97b797fc40a004695fb22fd7cb54228adfd3 Mon Sep 17 00:00:00 2001 From: "Noah S. Elliott" Date: Tue, 12 Nov 2024 14:52:25 -0800 Subject: [PATCH] Add CUDAToolkit package for CUDA builds with caliper --- cmake/thirdparty/SetupSAMRAIThirdParty.cmake | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cmake/thirdparty/SetupSAMRAIThirdParty.cmake b/cmake/thirdparty/SetupSAMRAIThirdParty.cmake index a75b88cc1..702e41a45 100644 --- a/cmake/thirdparty/SetupSAMRAIThirdParty.cmake +++ b/cmake/thirdparty/SetupSAMRAIThirdParty.cmake @@ -57,6 +57,11 @@ if (ENABLE_RAJA OR RAJA_DIR) endif () if (ENABLE_CALIPER OR caliper_DIR) + + if(ENABLE_CUDA) + find_package(CUDAToolkit REQUIRED) + endif() + find_package(caliper REQUIRED) set (HAVE_CALIPER True)