[Libomptarget] Update CMake messages if the tests aren't build
authorJoseph Huber <jhuber6@vols.utk.edu>
Fri, 24 Mar 2023 19:25:38 +0000 (14:25 -0500)
committerJoseph Huber <jhuber6@vols.utk.edu>
Fri, 24 Mar 2023 19:26:23 +0000 (14:26 -0500)
Summary:
These messages have been wrong for quite some time. Update them to be
more descriptive of why the tests weren't built.

openmp/libomptarget/plugins/amdgpu/CMakeLists.txt
openmp/libomptarget/plugins/cuda/CMakeLists.txt

index 7462b4c..e8abfb8 100644 (file)
@@ -117,7 +117,6 @@ if (LIBOMPTARGET_FOUND_AMDGPU_GPU OR LIBOMPTARGET_FORCE_AMDGPU_TESTS)
   list(APPEND LIBOMPTARGET_TESTED_PLUGINS "omptarget.rtl.amdgpu")
   set(LIBOMPTARGET_TESTED_PLUGINS "${LIBOMPTARGET_TESTED_PLUGINS}" PARENT_SCOPE)
 else()
-  libomptarget_say("Not generating amdgcn test targets as libhsa is not linkable")
+  libomptarget_say("Not generating AMDGPU tests, no supported devices detected. Use 'LIBOMPTARGET_FORCE_AMDGPU_TESTS' to override.")
   return()
 endif()
-
index d330291..c4c4605 100644 (file)
@@ -72,5 +72,5 @@ if (LIBOMPTARGET_FOUND_NVIDIA_GPU OR LIBOMPTARGET_FORCE_NVIDIA_TESTS)
   list(APPEND LIBOMPTARGET_TESTED_PLUGINS "omptarget.rtl.cuda")
   set(LIBOMPTARGET_TESTED_PLUGINS "${LIBOMPTARGET_TESTED_PLUGINS}" PARENT_SCOPE)
 else()
-  libomptarget_say("Disabling tests using CUDA plugin as cuda may not be available")
+  libomptarget_say("Not generating NVIDIA tests, no supported devices detected. Use 'LIBOMPTARGET_FORCE_NVIDIA_TESTS' to override.")
 endif()