[Openmp-commits] [PATCH] D111995: [libomptarget] Pass OMP_TARGET_OFFLOAD env variable through to tests
Jon Chesterfield via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Mon Oct 18 07:39:44 PDT 2021
JonChesterfield created this revision.
JonChesterfield added reviewers: jdoerfert, grokos, protze.joachim, jdenny, Meinersbur, sdmitriev.
JonChesterfield requested review of this revision.
Herald added a project: OpenMP.
Herald added a subscriber: openmp-commits.
Useful for OMP_TARGET_OFFLOAD=MANDATORY when testing
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D111995
Files:
openmp/libomptarget/test/lit.cfg
Index: openmp/libomptarget/test/lit.cfg
===================================================================
--- openmp/libomptarget/test/lit.cfg
+++ openmp/libomptarget/test/lit.cfg
@@ -17,6 +17,9 @@
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]
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D111995.380395.patch
Type: text/x-patch
Size: 609 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20211018/28b9e305/attachment-0001.bin>
More information about the Openmp-commits
mailing list