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

via Openmp-commits openmp-commits at lists.llvm.org
Sat Sep 9 19:51:23 PDT 2023


llvmbot wrote:

@llvm/pr-subscribers-openmp

<details>
<summary>Changes</summary>

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.
--
Full diff: https://github.com/llvm/llvm-project/pull/65869.diff

1 Files Affected:

- (modified) openmp/runtime/test/lit.cfg (+4) 


<pre>
diff --git a/openmp/runtime/test/lit.cfg b/openmp/runtime/test/lit.cfg
index ab69819530d4a0..650d3853e85111 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 = ':'
</pre>

</details>

https://github.com/llvm/llvm-project/pull/65869


More information about the Openmp-commits mailing list