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

Kazushi Marukawa via Openmp-commits openmp-commits at lists.llvm.org
Sat Sep 9 19:50:55 PDT 2023


https://github.com/kaz7 created https://github.com/llvm/llvm-project/pull/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.

>From 675a5a2eeb1bfc30a74c81649be4363abfbc249d Mon Sep 17 00:00:00 2001
From: "Kazushi (Jam) Marukawa" <marukawa at nec.com>
Date: Sat, 2 Sep 2023 10:52:07 +0200
Subject: [PATCH] [OpenMP][test][VE] Change to use VE_LD_LIBRARY_PATH for VE

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.
---
 openmp/runtime/test/lit.cfg | 4 ++++
 1 file changed, 4 insertions(+)

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