Skip to content

Commit

Permalink
[openmp][lit] Add support to OpenMP lit.cfg for ROCR_VISIBLE_DEVICES …
Browse files Browse the repository at this point in the history
…env-var

add support for ROCR_VISIBLE_DEVICES similar to name and purpose
as CUDA_VISIBLE_DEVICES

Differential Revision: https://reviews.llvm.org/D112503
  • Loading branch information
ronlieb committed Oct 26, 2021
1 parent 04f3079 commit be03ef3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions openmp/libomptarget/test/lit.cfg
Expand Up @@ -13,6 +13,10 @@ if 'PYLINT_IMPORT' in os.environ:
if 'CUDA_VISIBLE_DEVICES' in os.environ:
config.environment['CUDA_VISIBLE_DEVICES'] = os.environ['CUDA_VISIBLE_DEVICES']

# Use the ROCR device as suggested by the env
if 'ROCR_VISIBLE_DEVICES' in os.environ:
config.environment['ROCR_VISIBLE_DEVICES'] = os.environ['ROCR_VISIBLE_DEVICES']

# Allow running the tests with omptarget debug output
if 'LIBOMPTARGET_DEBUG' in os.environ:
config.environment['LIBOMPTARGET_DEBUG'] = os.environ['LIBOMPTARGET_DEBUG']
Expand Down

0 comments on commit be03ef3

Please sign in to comment.