Issue 56445
Summary [OpenMP] offload with math stops working on AMD
Labels new issue
Assignees jhuber6
Reporter ye-luo
    Breakage was caused by
```
commit 958a8850508088766fe19202037e2f46805e2c65
Author: Joseph Huber <[email protected]>
Date:   Mon Jun 6 11:36:45 2022 -0400

    [LinkerWrapper] Rework the linker wrapper and use owning binaries
```

Using
https://github.com/ye-luo/openmp-target/blob/master/tests/math/modf.cpp
```
clang++ -fopenmp -fopenmp-targets=amdgcn-amd-amdhsa -Xopenmp-target=amdgcn-amd-amdhsa -march=gfx906 -O3 modf.cpp
lld: error: undefined symbol: __ocml_modf_f64
>>> referenced by /tmp/a.out-device-amdgcn-amd-amdhsa-6be67a.o:(__omp_offloading_fd02_2b0248d_main_l25)
>>> referenced by /tmp/a.out-device-amdgcn-amd-amdhsa-6be67a.o:(__omp_offloading_fd02_2b0248d_main_l25)
>>> referenced by /tmp/a.out-device-amdgcn-amd-amdhsa-6be67a.o:(__omp_offloading_fd02_2b0248d__Z9test_modfIdEvT__l9)
>>> referenced 1 more times
```
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to