[openmp] Run tests on both runtimes, independent of the default
authorJon Chesterfield <jonathanchesterfield@gmail.com>
Mon, 6 Dec 2021 16:41:22 +0000 (16:41 +0000)
committerJon Chesterfield <jonathanchesterfield@gmail.com>
Mon, 6 Dec 2021 16:41:23 +0000 (16:41 +0000)
Minor fix to the lit.cfg. Currently, nvptx runs the tests twice on the new runtime.
Soon, amdgpu will run them on the new runtime as well as the old.

Reviewed By: jdoerfert

Differential Revision: https://reviews.llvm.org/D115150

openmp/libomptarget/test/lit.cfg

index 3c3133f..0dcb640 100644 (file)
@@ -104,6 +104,8 @@ else: # Unices
         config.test_flags += " --libomptarget-nvptx-bc-path=" + config.library_dir
     if config.libomptarget_current_target.endswith('-newRTL'):
         config.test_flags += " -fopenmp-target-new-runtime"
+    else:
+        config.test_flags += " -fno-openmp-target-new-runtime"
 
 # substitutions
 # - for targets that exist in the system create the actual command.