[Openmp-commits] [openmp] [flang][OpenMP][Offloading][AMDGPU] Exclude `nogpulib` in `lit.cfg` (PR #76702)
Kareem Ergawy via Openmp-commits
openmp-commits at lists.llvm.org
Tue Jan 2 00:51:13 PST 2024
https://github.com/ergawy updated https://github.com/llvm/llvm-project/pull/76702
>From a64fb16f06f197ad0c23377f85bfb5b98a62b0d1 Mon Sep 17 00:00:00 2001
From: ergawy <kareem.ergawy at amd.com>
Date: Tue, 2 Jan 2024 02:36:59 -0600
Subject: [PATCH] [flang][OpenMP][Offloading][AMDGPU] Exclude `nogpulib` in
`lit.cfg`
In order to run offloading tests for AMDGPUs, we should not use the
`nogpulib` flag added by `lit.cfg`. This is already done for Nvidia GPUs
and seems to have been overlooked for AMD.
---
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 19c5e5c4572227..dca922dcfc6bce 100644
--- a/openmp/libomptarget/test/lit.cfg
+++ b/openmp/libomptarget/test/lit.cfg
@@ -132,7 +132,7 @@ elif config.operating_system == 'Darwin':
config.test_flags += " -Wl,-rpath," + config.library_dir
config.test_flags += " -Wl,-rpath," + config.omp_host_rtl_directory
else: # Unices
- if config.libomptarget_current_target != "nvptx64-nvidia-cuda":
+ if config.libomptarget_current_target != "nvptx64-nvidia-cuda" and config.libomptarget_current_target != "amdgcn-amd-amdhsa":
config.test_flags += " -nogpulib"
config.test_flags += " -Wl,-rpath," + config.library_dir
config.test_flags += " -Wl,-rpath," + config.omp_host_rtl_directory
More information about the Openmp-commits
mailing list