Skip to content

Commit 1c43be0

Browse files
committed
[Libomptarget] Update CMake messages if the tests aren't build
Summary: These messages have been wrong for quite some time. Update them to be more descriptive of why the tests weren't built.
1 parent 3bff90e commit 1c43be0

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

openmp/libomptarget/plugins/amdgpu/CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,6 @@ if (LIBOMPTARGET_FOUND_AMDGPU_GPU OR LIBOMPTARGET_FORCE_AMDGPU_TESTS)
117117
list(APPEND LIBOMPTARGET_TESTED_PLUGINS "omptarget.rtl.amdgpu")
118118
set(LIBOMPTARGET_TESTED_PLUGINS "${LIBOMPTARGET_TESTED_PLUGINS}" PARENT_SCOPE)
119119
else()
120-
libomptarget_say("Not generating amdgcn test targets as libhsa is not linkable")
120+
libomptarget_say("Not generating AMDGPU tests, no supported devices detected. Use 'LIBOMPTARGET_FORCE_AMDGPU_TESTS' to override.")
121121
return()
122122
endif()
123-

openmp/libomptarget/plugins/cuda/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,5 +72,5 @@ if (LIBOMPTARGET_FOUND_NVIDIA_GPU OR LIBOMPTARGET_FORCE_NVIDIA_TESTS)
7272
list(APPEND LIBOMPTARGET_TESTED_PLUGINS "omptarget.rtl.cuda")
7373
set(LIBOMPTARGET_TESTED_PLUGINS "${LIBOMPTARGET_TESTED_PLUGINS}" PARENT_SCOPE)
7474
else()
75-
libomptarget_say("Disabling tests using CUDA plugin as cuda may not be available")
75+
libomptarget_say("Not generating NVIDIA tests, no supported devices detected. Use 'LIBOMPTARGET_FORCE_NVIDIA_TESTS' to override.")
7676
endif()

0 commit comments

Comments
 (0)