<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/60221>60221</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[OpenMP] better error message
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
jdoerfert
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
ye-luo
</td>
</tr>
</table>
<pre>
I sometimes miscompile the offload code with an architecture different from the one to run on.
I only get an offload failure and need to use `LIBOMPTARGET_DEBUG=1` to figure out the following.
```
Target AMDGPU RTL --> Incompatible: Processor mismatch [Image: gfx90a] : [Env: gfx906:sramecc+:xnack-]
Libomptarget --> Image 0x0000561fe7b34ce0 is NOT compatible with RTL !
```
Is there a way t make this error immediately visible without rerun with `LIBOMPTARGET_DEBUG=1`
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx8U0tr8zgU_TXy5pIgy49MFl4kOCmBdhpKuh5k-cpWq0eQ5Kb594McT7sZPjAY--o8dI7EQ1CDRWxItSeMffQOvUQfCWOkajM-xdH55o4rPbmsc_29OUFwBqMyGMCoIJy5Ko0QRwQnpXa8B-F6hJuKI3AL3ItRRRRx8gi9khI92gjSO_MAWYTowE8WnF0T2hK6O4Gz-g4DxsTwH63kSicSbnuwiH2CTQGB1PT5tH99OV92b0-Hyz_tYf_-RIo2JzVNa6QaEsxNcRaUTmt3U3ZYxEhNl2f-vHCfdHcv7dP5Hd4uz7BakeIAJ5u2yqPqNJJiB2fvBIbgfErB8ChGIHRLqv3J8GFeMcjvLeWkatP_YveYHuzXz6wmxS54blAIwvak2H1bLj5XMyJZeVadM9f4MLS4SORAvymltKpziZuuKAVSUAH-fr3Ar8dHAck_Yfn_7vQUUh4pULjxO0Qw_DMVqQKg986DMgZ7xSPqO3yp8MOakvSYGps1_pR_1jdFvy22PMMmrzdlWZbFX2U2Nl0tarHJkXIpcMvyincMmWQdpyXjZZWphlFW0JwVtGA1K9diKwWKciMZr-q-pqSkaLjSa62_zNr5IVMhTNjUlLE807xDHZZjbfEG83A51r5JmFU3DYGUVKsQwy9LVFHP9-H1ivblTKoWOowR_ZKKwRD4gNnkdTPGeA2pW3Yk7DioOE7dWjhD2DHxLa_V1bsPFJGw4-wiEHacXf4bAAD__-pXG4g">