From 7e8528b43a8ba0a1094e20f287ec909a9624474f Mon Sep 17 00:00:00 2001 From: Razvan Nane Date: Wed, 11 Oct 2023 13:29:40 +0200 Subject: [PATCH] Disable only CUDA when ROCm also selected --- CMakeLists.txt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3312c08b2..5c0418d3d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -313,11 +313,9 @@ macro (files_hook) unset(HAVE_HDF5) endif() if(HAVE_ROCSPARSE AND HAVE_CUDA) - message(WARNING "WARNING! Using CUDA and HIP at the same time is not allowed. Please choose only one of them. Disabling both...\n") + message(WARNING "WARNING! Using CUDA and ROCm at the same time is not allowed. Please choose only one of them by setting CMAKE_DISABLE_FIND_PACKAGE_=. Disabling CUDA...\n") set(CUDA_FOUND OFF) - set(rocsparse_FOUND OFF) unset(HAVE_CUDA) - unset(HAVE_ROCSPARSE) endif() # read the list of components from this file (in the project directory); # it should set various lists with the names of the files to include