<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/56445>56445</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[OpenMP] offload with math stops working on AMD
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
jhuber6
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
ye-luo
</td>
</tr>
</table>
<pre>
Breakage was caused by
```
commit 958a8850508088766fe19202037e2f46805e2c65
Author: Joseph Huber <jhuber6@vols.utk.edu>
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
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzlVN1unTAMfhrOjcVR-D1wwUW702qrVnWaNm3aDQrEAdpAUBJ61refA6ebqlZ9gUkmceIYf479pdHiqbo0yB94h3DiFlq-WBTQPAXsGLCLIGdnWZetHsfBQZkVvCgylrGCFcUhzyVGZcxilhwwlmlesAzjNs82p4vF9doEyQXcaItzDx-XBg0EyYf73mt5kLJHrex-cQ97FEuQXG2OR-7QuwHc6glulglyiCLaSXIa0gwoZAwhS9kZ3jbSeQiyy8_D9IDmh-HzjCbIjvAVT9o8gOsR1GqD02YEPgmgtEGfpmHqoBkmbga0b17BNn63dHBTe-dmS3iC-JqkGxwltaeLosUThmrRpOgZp3EOHTcdOlo3Sjc0jdw6whZfO7TOrhuu95MWct_O89s1UJxCx5ckEMrtz3-VcwjCc-Sj6NoppMl_veUQ_nyJ480zIzdtT6ZO_i5ZDuFdAi_hKCV8UdCYrajLJFAOEzWNfRobrfxeXet2VLV3rGWenvOguq4CBiUanNq10cDnP8408r1eXCjwcWgxfAUtzBvMD3RmveuCQoxzraVUmgsqRi0Fi-u4YXFaiHrkw1SrOAvi8j8LXv8qfTetd_9JXD1-q2tVvo8kogobBDeMr3p-J6pElEnJd25wCivi1R310O0XT6gzBDhRz4NvXbBOzxY8zTyPiLQXt8fdYlT1DkmUenyewtnoe2w9QwZrF_SUyPI0zXZ9JZIykUmZy7ZNZSYY5-WhzbIiklEjo7TdKd6gsh5hEMcTnmD9BekEdTdU_q1gB1ZEacaibB9LTAVLkkOeyBIF0huEVDe19zj22nQ7U62QmqWzZFQDMfSfkVs7dBPiOdzzQ7YF4-uDV23s360wqjWNP7InscU">