<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/56752>56752</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[OpenMP] offlaod linking issue
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
jdoerfert,
jhuber6
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
ye-luo
</td>
</tr>
</table>
<pre>
Broken since d61d72dae604c3258e25c00622b1a85861450303
```
clang++ -fopenmp -fopenmp-targets=nvptx64 -O3 complex.cpp
nvlink error : Undefined reference to '__kmpc_kernel_parallel' in '/tmp/complex-496a9f-nvptx64-nvidia-cuda-sm_80-4864b4.cubin'
nvlink error : Undefined reference to '__kmpc_kernel_end_parallel' in '/tmp/complex-496a9f-nvptx64-nvidia-cuda-sm_80-4864b4.cubin'
/soft/llvm/main-patched/bin/clang-linker-wrapper: error: 'nvlink' failed
```
affecting main and 15 release
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJy1UkuPpCAQ_jV6IXQQBe2Dh5mdzG0ze9lzp5TSZhqBAM7j3y84nd3L3jabVKwqS76H1OTU5_gY3A0tidrOSJRsVM8VoGTd3HIxIBczY5LzqYFBDLLpBGtZW7Gnij1Ukt3jaGcDdq34Yw5CF-fRbv53QROEFVOs2if75tOH7Ah9acnsNm_w4zR7T75Q7JvR9kYwBBcIIVX7QH5ahYu2qEjABQMWpcmRiveXy23z8-WGwaK5eAhgDJo8INqWecWf0-bz885Du7OE80LvEnLWSgOddwU0bpeB0W6Q3dSd5n3StgD8qya06v_pygDRLSknY962nDbQlnpI8xVVbo9vn497ocUBBvoewHsMxcJhpxQZ78thEbiANvnw3y4YlgXnpO1KCg8Bq0gjsn-DELHGsZFiOLcNb5paja06t2eok04Gx0o8vuQ1-P6jEk_ELYsBp0hhLGA6xh3rPZjxmpLPG1J85Vh1uu7TKf-iPwZLoj641ywkt8fRmAshe8Hr69gIYGJiM7CeSUQGUsoO-6HpB2ingdcGJjSxCKo4t_j-xZ7rrKzWI2ecs573Tde0LTv10DNQzTANHUehhqpjmL2bU9FxcmGtw3hImvY15qHRMcU_Q4hRrxbxTveqHIa8LKnQ8W-kvMoOMcg7P-zp6sL4idTsrj6UjYezX9y0JtY">