[Openmp-commits] [openmp] f8efa65 - [OpenMP][test][VE] Change to use VE_LD_LIBRARY_PATH for VE (#65869)

via Openmp-commits openmp-commits at lists.llvm.org
Sat Sep 9 20:07:20 PDT 2023


Author: Kazushi Marukawa
Date: 2023-09-10T12:07:16+09:00
New Revision: f8efa65ca545bbfe2e2e5a3c510af8f88d8d4647

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

LOG: [OpenMP][test][VE] Change to use VE_LD_LIBRARY_PATH for VE (#65869)

Change to use VE_LD_LIBRARY_PATH for VE instead of LD_LIBRARY_PATH. The
VE is connected to the host, and compiled test programs for VE is
invoked on the host and transferred to the VE. If programs are compiled
for the host, we use LD_LIBRARY_PATH. Otherwise, we use
VE_LD_LIBRARY_PATH.

Added: 
    

Modified: 
    openmp/runtime/test/lit.cfg

Removed: 
    


################################################################################
diff  --git a/openmp/runtime/test/lit.cfg b/openmp/runtime/test/lit.cfg
index ab69819530d4a03..650d3853e851112 100644
--- a/openmp/runtime/test/lit.cfg
+++ b/openmp/runtime/test/lit.cfg
@@ -12,12 +12,16 @@ if 'PYLINT_IMPORT' in os.environ:
     lit_config = object()
 
 def prepend_dynamic_library_path(path):
+    target_arch = getattr(config, 'target_arch', None)
     if config.operating_system == 'Windows':
         name = 'PATH'
         sep = ';'
     elif config.operating_system == 'Darwin':
         name = 'DYLD_LIBRARY_PATH'
         sep = ':'
+    elif target_arch == 've':
+        name = 'VE_LD_LIBRARY_PATH'
+        sep = ':'
     else:
         name = 'LD_LIBRARY_PATH'
         sep = ':'


        


More information about the Openmp-commits mailing list