From 6438b39ab68dae784c6c52d997c9f65d20f8241c Mon Sep 17 00:00:00 2001 From: Loris Lucido <loris.lucido@atos.net> Date: Wed, 2 Nov 2022 09:33:35 +0100 Subject: [PATCH] ctest: add hip support to the testing suite --- CTestConfig.cmake | 4 ++++ testing/CTestLists.cmake | 3 +++ 2 files changed, 7 insertions(+) diff --git a/CTestConfig.cmake b/CTestConfig.cmake index 22b9048e0..920231009 100644 --- a/CTestConfig.cmake +++ b/CTestConfig.cmake @@ -53,4 +53,8 @@ if(NOT BUILDNAME) set(BUILDNAME "${BUILDNAME}-CUDA") endif(CHAMELEON_USE_CUDA) + if(CHAMELEON_USE_HIP) + set(BUILDNAME "${BUILDNAME}-HIP") + endif(CHAMELEON_USE_HIP) + endif() diff --git a/testing/CTestLists.cmake b/testing/CTestLists.cmake index 7c979a917..9dcacf75e 100644 --- a/testing/CTestLists.cmake +++ b/testing/CTestLists.cmake @@ -11,6 +11,9 @@ endif() if (CHAMELEON_USE_CUDA AND CUDA_FOUND) set(N_GPUS 0 1) endif() +if (CHAMELEON_USE_HIP AND HIP_FOUND) + set(N_GPUS 0 1) +endif() if (CHAMELEON_SIMULATION) set(TEST_CATEGORIES simushm) if (CHAMELEON_USE_CUDA) -- GitLab