[Openmp-commits] [PATCH] D112503: [openmp][lit] Add support to OpenMP lit.cfg for ROCR_VISIBLE_DEVICES env-var

Ron Lieberman via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Tue Oct 26 06:47:15 PDT 2021


This revision was automatically updated to reflect the committed changes.
Closed by commit rGbe03ef3ed1d1: [openmp][lit] Add support to OpenMP lit.cfg for ROCR_VISIBLE_DEVICES env-var (authored by ronlieb).
Herald added a project: OpenMP.
Herald added a subscriber: openmp-commits.

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D112503/new/

https://reviews.llvm.org/D112503

Files:
  openmp/libomptarget/test/lit.cfg


Index: openmp/libomptarget/test/lit.cfg
===================================================================
--- openmp/libomptarget/test/lit.cfg
+++ openmp/libomptarget/test/lit.cfg
@@ -13,6 +13,10 @@
 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']


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D112503.382296.patch
Type: text/x-patch
Size: 682 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20211026/db1e6d88/attachment-0001.bin>


More information about the Openmp-commits mailing list