From 5df492302e260fa2ce8e2b7f28cf5a48902b7f8a Mon Sep 17 00:00:00 2001 From: "Joel E. Denny" Date: Thu, 8 Jun 2023 15:09:35 -0400 Subject: [PATCH] [OpenMP] Fix --libomptarget-nvptx-bc-path in tests After D151324, which landed as 349c0aacb380, many libomptarget non-LTO nvptx64 tests fail with errors like: ``` clang: error: bitcode library '/tmp/llvm-project/build/runtimes/runtimes-bins/openmp/libomptarget/libomptarget-nvptx-sm_70.bc' does not exist ``` This patch updates the bc path. Reviewed By: jhuber6 Differential Revision: https://reviews.llvm.org/D152462 --- openmp/libomptarget/test/lit.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openmp/libomptarget/test/lit.cfg b/openmp/libomptarget/test/lit.cfg index b268e46..e3255b3 100644 --- a/openmp/libomptarget/test/lit.cfg +++ b/openmp/libomptarget/test/lit.cfg @@ -120,7 +120,7 @@ else: # Unices if config.cuda_libdir: config.test_flags += " -Wl,-rpath," + config.cuda_libdir if config.libomptarget_current_target.startswith('nvptx'): - config.test_flags += " --libomptarget-nvptx-bc-path=" + config.library_dir + config.test_flags += " --libomptarget-nvptx-bc-path=" + config.library_dir + '/DeviceRTL' if config.libomptarget_current_target.endswith('-LTO'): config.test_flags += " -foffload-lto" if config.libomptarget_current_target.endswith('-JIT-LTO') and evaluate_bool_env( -- 2.7.4