[Openmp-commits] [openmp] [Libomptarget] Output the DeviceRTL alongside the other libraries (PR #73705)
Shilei Tian via Openmp-commits
openmp-commits at lists.llvm.org
Tue Nov 28 15:22:36 PST 2023
================
@@ -156,8 +156,8 @@ def remove_suffix_if_present(name):
def add_libraries(source):
if config.libomptarget_has_libc:
return source + " " + config.llvm_library_dir + "/libcgpu.a " + \
- config.library_dir + "/libomptarget.devicertl.a"
- return source + " " + config.library_dir + "/libomptarget.devicertl.a"
+ config.llvm_library_dir + "/libomptarget.devicertl.a"
+ return source + " " + config.llvm_library_dir + "/libomptarget.devicertl.a"
----------------
shiltian wrote:
And even w/o this patch, `libomptarget.devicertl.a` sits next to `libomptarget.so`.
```
➜ libomptarget ll
total 4.1M
drwxr-xr-x 8 ac.shilei.tian jlse 4.0K Nov 28 18:20 ./
drwxr-xr-x 8 ac.shilei.tian jlse 4.0K Nov 28 18:19 ../
drwxr-xr-x 2 ac.shilei.tian jlse 4.0K Nov 28 18:19 CMakeFiles/
-rw-r--r-- 1 ac.shilei.tian jlse 2.4K Nov 28 18:19 cmake_install.cmake
drwxr-xr-x 3 ac.shilei.tian jlse 256K Nov 28 18:20 DeviceRTL/
-rw-r--r-- 1 ac.shilei.tian jlse 1.8M Nov 28 18:20 libomptarget.devicertl.a
lrwxrwxrwx 1 ac.shilei.tian jlse 32 Nov 28 18:20 libomptarget.rtl.amdgpu.so -> libomptarget.rtl.amdgpu.so.18git*
-rwxr-xr-x 1 ac.shilei.tian jlse 443K Nov 28 18:20 libomptarget.rtl.amdgpu.so.18git*
lrwxrwxrwx 1 ac.shilei.tian jlse 30 Nov 28 18:20 libomptarget.rtl.cuda.so -> libomptarget.rtl.cuda.so.18git*
-rwxr-xr-x 1 ac.shilei.tian jlse 360K Nov 28 18:20 libomptarget.rtl.cuda.so.18git*
lrwxrwxrwx 1 ac.shilei.tian jlse 32 Nov 28 18:20 libomptarget.rtl.x86_64.so -> libomptarget.rtl.x86_64.so.18git*
-rwxr-xr-x 1 ac.shilei.tian jlse 303K Nov 28 18:20 libomptarget.rtl.x86_64.so.18git*
lrwxrwxrwx 1 ac.shilei.tian jlse 21 Nov 28 18:20 libomptarget.so -> libomptarget.so.18git*
-rwxr-xr-x 1 ac.shilei.tian jlse 209K Nov 28 18:20 libomptarget.so.18git*
drwxr-xr-x 11 ac.shilei.tian jlse 4.0K Nov 28 18:19 plugins-nextgen/
drwxr-xr-x 3 ac.shilei.tian jlse 4.0K Nov 28 18:19 src/
drwxr-xr-x 8 ac.shilei.tian jlse 4.0K Nov 28 18:19 test/
drwxr-xr-x 5 ac.shilei.tian jlse 4.0K Nov 28 18:19 tools/
```
https://github.com/llvm/llvm-project/pull/73705
More information about the Openmp-commits
mailing list