From c045afe524c4751e91a916a642be4e9eb4d1378c Mon Sep 17 00:00:00 2001 From: Your Name <you@example.com> Date: Fri, 11 Feb 2022 14:45:06 +0100 Subject: [PATCH] Fixing OpenMP for HIP --- CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e1573ba3..1ddf767c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -36,7 +36,10 @@ find_package(Vc REQUIRED) if (CUDA_ON_BACKEND STREQUAL "HIP" AND NOT HIP_FOUND) find_package(HIP) endif() -find_package(OpenMP) +if (NOT CUDA_ON_BACKEND STREQUAL "HIP") + find_package(OpenMP) + +endif() ###### CONFIG.h FILE ###### -- GitLab