<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/134771>134771</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[AMDGPU] Improve the interaction between COV and device libraries
</td>
</tr>
<tr>
<th>Labels</th>
<td>
backend:AMDGPU,
clang:driver
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
shiltian
</td>
</tr>
</table>
<pre>
Right now, if the required device libraries for a given ABI version can't be found, we emit a hard error. For example, the default is currently COV6, which requires ROCm 6.3. If an older ROCm version is detected and used by the Clang driver, the compilation immediately fails with an error like:
```
clang++: error: cannot find ROCm device library for ABI version 6; provide its path via '--rocm-path' or '--rocm-device-lib-path', or pass '-nogpulib' to build without ROCm device library
```
This behavior isn't very user friendly. Ideally, we should emit a warning instead and fall back to the highest supported ABI version available in the detected ROCm installation.
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJxsU82O4zYMfhr5QsRw5DjeHHzIZJBiDsUWi7Z3yqItdmXJlWSneftCToJOFwsISCCLH_n9EGPk0RF1onkTzXuBSzI-dNGwTYyuUF7fu288mgTO34S8AA-QDEGgvxcOpEHTyj2BZRUwMEUYfACEkVdycH77gJVCZO-gRydkm0ARDH5xOoPdCGjiBAgGgwYKwYcSrj4A_YPTbCk_yu00DbjYBByhX0Igl-wdLl__PG4ohnvzmijCt6-XCY5lXcLHAOjAW03hcfuahSNoStQn0oBOwxJJg7pvrS4W3Qg68Erh1b7308wW01Y7TaQZE9k7DMg2wo2TyY228cHydxL1WVTbOVbPU537DCzkWz71-fE6_-nROZ9gYKcfU_5P0vsm6Gchj6J-gzn4lTUBpwgzJgMrIwjZ7nbB99MuXwnZgg-fLh-4O8vq9T3z8wFmjHF75_w4L5ZVLk0e1MJWb_T8kn422w8MRXX-3XAERQZX9gE4PjxfKdyzyAGGwOS0vZfwoQmtvT9jEI1frH6l4YbBsRuBXUyED48GtBYU9t_zZNkUw6OhmCAu8-xDtvKzSrgiW1SWgN0zQk_DNx4ZGe3D0rLQXa1P9QkL6vbt4VB9qU5SFqY7Itaa6v1-X2mkL3tdaTxigydU2OCABXeykk2VK2TTSFmqpj6q06FtqmPbykMrDhVNyLa0dp1KH8aCY1yo29eHtt0XFhXZuG2flJkcOS3q8_nX919--0NIKeRFSPlITn1-hVLmVQ1dhtypZYziUFmOKf7XJHGy21I_kZp3-JhyZmjTgl2igP2WZ0XpRuTyNm06_7jQxRJsZ1KaY061vAp5HTmZRZW9n4S85p7Pn90c_F_UJyGvG8so5PVJdO3kvwEAAP__r2V4KQ">