<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/141436>141436</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[Offload] olGetDeviceInfo with OL_DEVICE_INFO_TYPE always returns OL_DEVICE_TYPE_GPU
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
leandrolcampos
</td>
</tr>
</table>
<pre>
The `olGetDeviceInfo` function, when queried with the `OL_DEVICE_INFO_TYPE`, always returns `OL_DEVICE_TYPE_GPU` for all types of devices.
https://github.com/llvm/llvm-project/blob/b7f5950bb3b97eac979925a3bbf015530c26962e/offload/liboffload/src/OffloadImpl.cpp#L254-L255
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJyUkkGP2y4QxT8NvqC18GAcc_Bh_5v1KlL0zx62lXqKAI9jKmJcwIny7Ss7W6267aWn0YiZx3v8UDHa04jYEPEfEdtMzWnwoXGoxi54Z9R58jHTvrs1bwNSUjHvXjBt8WIN7sbek4rRfh5Nsn4k8ESvA470x4zBYkevNg003fcO--P2-evu6fm4-789HN--vT6Tii0ryl3VLdKAaQ5j_H12GTu-vH5Zr_GBKudouk0Yqe9pt7qIOWGPhD0OKU2R8EcCLYH2ZNMw69z4M4HWucuv8jAF_x1NItBq5_VSNr2QgmnNtdygMnIjJQjFte5ZIQRnBipZARJofd87r7pFyuqPJgZDoD3c-915crmZJgJ8D6J82IMQWdfwTnKpMmyKTVlDURcVz4amQ46iqwoGRSmhr7Wp-1IL6DkoqCRmtgEGggmoGGMSeM4EU6Y2yJmSZY09KRmelXX5Ei734ZTZGGdsirIoeZU5pdHFlS7AiFe6nhKABXZo1hfR8ymSkjkbU_yQSTa59Vu85yJiSz-xv_P9C9jPSP_kmc3BNf9MbDUfCbTv6S4N_AwAAP__RWTffw">