Skip to content

Commit 251b1e7

Browse files
[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
1 parent b0c4aaf commit 251b1e7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

openmp/libomptarget/test/lit.cfg

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ if 'CUDA_VISIBLE_DEVICES' in os.environ:
1717
if 'LIBOMPTARGET_DEBUG' in os.environ:
1818
config.environment['LIBOMPTARGET_DEBUG'] = os.environ['LIBOMPTARGET_DEBUG']
1919

20+
if 'OMP_TARGET_OFFLOAD' in os.environ:
21+
config.environment['OMP_TARGET_OFFLOAD'] = os.environ['OMP_TARGET_OFFLOAD']
22+
2023
def append_dynamic_library_path(name, value, sep):
2124
if name in config.environment:
2225
config.environment[name] = value + sep + config.environment[name]

0 commit comments

Comments
 (0)