[Openmp-commits] [PATCH] D95293: [OpenMP] Fixed test environment of `check-libomptarget-nvptx`
Shilei Tian via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Sat Jan 23 12:28:33 PST 2021
tianshilei1992 created this revision.
tianshilei1992 added reviewers: jdoerfert, JonChesterfield.
Herald added subscribers: guansong, yaxunl.
tianshilei1992 requested review of this revision.
Herald added subscribers: openmp-commits, sstefan1.
Herald added a project: OpenMP.
D95161 <https://reviews.llvm.org/D95161> removed the option `--libomptarget-nvptx-path`, which is used in
the tests for `libomptarget-nvptx`.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D95293
Files:
openmp/libomptarget/deviceRTLs/nvptx/test/lit.cfg
Index: openmp/libomptarget/deviceRTLs/nvptx/test/lit.cfg
===================================================================
--- openmp/libomptarget/deviceRTLs/nvptx/test/lit.cfg
+++ openmp/libomptarget/deviceRTLs/nvptx/test/lit.cfg
@@ -32,8 +32,7 @@
# compiler flags
config.test_flags = " -I " + config.omp_header_directory + \
- " -L " + config.library_dir + \
- " --libomptarget-nvptx-path=" + config.library_dir;
+ " -L " + config.library_dir
if config.omp_host_rtl_directory:
config.test_flags = config.test_flags + \
@@ -42,6 +41,7 @@
config.test_flags = config.test_flags + " " + config.test_extra_flags
# Setup environment to find dynamic library at runtime.
+prepend_library_path('LIBRARY_PATH', config.library_dir, ":")
prepend_library_path('LD_LIBRARY_PATH', config.library_dir, ":")
prepend_library_path('LD_LIBRARY_PATH', config.omp_host_rtl_directory, ":")
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D95293.318781.patch
Type: text/x-patch
Size: 900 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20210123/3f46aa84/attachment.bin>
More information about the Openmp-commits
mailing list