[Openmp-commits] [openmp] 48560e2 - [Libomptarget] Fix the NVPTX Libomptarget test

Joseph Huber via Openmp-commits openmp-commits at lists.llvm.org
Thu Feb 2 07:46:25 PST 2023


Author: Joseph Huber
Date: 2023-02-02T09:46:10-06:00
New Revision: 48560e264c4010b64f226169487921ffed989d30

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

LOG: [Libomptarget] Fix the NVPTX Libomptarget test

Summary:
This was broken, we weren't adding these for the NVPTX tests.

Added: 
    

Modified: 
    openmp/libomptarget/test/lit.cfg

Removed: 
    


################################################################################
diff  --git a/openmp/libomptarget/test/lit.cfg b/openmp/libomptarget/test/lit.cfg
index a76f5828ae798..08cd23c411f0f 100644
--- a/openmp/libomptarget/test/lit.cfg
+++ b/openmp/libomptarget/test/lit.cfg
@@ -114,7 +114,7 @@ else: # Unices
     config.test_flags += " -Wl,-rpath," + config.llvm_lib_directory
     if config.cuda_libdir:
         config.test_flags += " -Wl,-rpath," + config.cuda_libdir
-    if config.libomptarget_current_target.startswith('amdgcn'):
+    if config.libomptarget_current_target.startswith('nvptx'):
         config.test_flags += " --libomptarget-nvptx-bc-path=" + config.library_dir
     if config.libomptarget_current_target.endswith('-LTO'):
         config.test_flags += " -foffload-lto"


        


More information about the Openmp-commits mailing list