Skip to content

Commit a64fb16

Browse files
committed
[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.
1 parent 75be7bb commit a64fb16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

openmp/libomptarget/test/lit.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ elif config.operating_system == 'Darwin':
132132
config.test_flags += " -Wl,-rpath," + config.library_dir
133133
config.test_flags += " -Wl,-rpath," + config.omp_host_rtl_directory
134134
else: # Unices
135-
if config.libomptarget_current_target != "nvptx64-nvidia-cuda":
135+
if config.libomptarget_current_target != "nvptx64-nvidia-cuda" and config.libomptarget_current_target != "amdgcn-amd-amdhsa":
136136
config.test_flags += " -nogpulib"
137137
config.test_flags += " -Wl,-rpath," + config.library_dir
138138
config.test_flags += " -Wl,-rpath," + config.omp_host_rtl_directory

0 commit comments

Comments
 (0)