[Openmp-commits] [openmp] 251b1e7 - [libomptarget] Pass OMP_TARGET_OFFLOAD env variable through to tests

Jon Chesterfield via Openmp-commits openmp-commits at lists.llvm.org
Mon Oct 18 08:03:14 PDT 2021


Author: Jon Chesterfield
Date: 2021-10-18T16:03:03+01:00
New Revision: 251b1e7c25b5aa0cf46f04741c5b935b8efcceff

URL: https://github.com/llvm/llvm-project/commit/251b1e7c25b5aa0cf46f04741c5b935b8efcceff
DIFF: https://github.com/llvm/llvm-project/commit/251b1e7c25b5aa0cf46f04741c5b935b8efcceff.diff

LOG: [libomptarget] Pass OMP_TARGET_OFFLOAD env variable through to tests

Useful for OMP_TARGET_OFFLOAD=MANDATORY when testing

Reviewed By: Meinersbur

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

Added: 
    

Modified: 
    openmp/libomptarget/test/lit.cfg

Removed: 
    


################################################################################
diff  --git a/openmp/libomptarget/test/lit.cfg b/openmp/libomptarget/test/lit.cfg
index 3693343969d80..5b3e2f54f8e5e 100644
--- a/openmp/libomptarget/test/lit.cfg
+++ b/openmp/libomptarget/test/lit.cfg
@@ -17,6 +17,9 @@ if 'CUDA_VISIBLE_DEVICES' in os.environ:
 if 'LIBOMPTARGET_DEBUG' in os.environ:
     config.environment['LIBOMPTARGET_DEBUG'] = os.environ['LIBOMPTARGET_DEBUG']
 
+if 'OMP_TARGET_OFFLOAD' in os.environ:
+    config.environment['OMP_TARGET_OFFLOAD'] = os.environ['OMP_TARGET_OFFLOAD']
+
 def append_dynamic_library_path(name, value, sep):
     if name in config.environment:
         config.environment[name] = value + sep + config.environment[name]


        


More information about the Openmp-commits mailing list