<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/61392>61392</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            [OpenMP] llvm-omp-device-info crashes
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            openmp
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
            josemonsalve2,
            kevinsala
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          jdoerfert
      </td>
    </tr>
</table>

<pre>
    On a MI250x node, offloading works fine though:

```
llvm-omp-device-info 
Device (0):
llvm-omp-device-info: /dev/shm/doerfert/rr/src/llvm-project/openmp/libomptarget/plugins-nextgen/common/PluginInterface/PluginInterface.h:774: GenericDeviceTy &llvm::omp::target::plugin::GenericPluginTy::getDevice(int32_t): Assertion `Devices[DeviceId] && "Device is unitialized"' failed.
[2]    999571 abort (core dumped)  llvm-omp-device-info
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxsU01vozAQ_TXDxUrkjMPXgUPaiFUPVXvofWXwAG7BRrbJtvvrVwa6q1UrRdHjmRm_mfeQ3uveEFWQ3gHiq_U0WePleCMERMB7QHyjm46cjEx6TeQSBuuqV2XJdeRC0lj1UT0ZJtnjA6b8nRmrCPCe2a4brVTa9OyXdW-eddoQC4Nd-gHEBfgV-Od_xvff-jiOt-lgp_mg6KZbOmjTWbYdXVeGARYcsPzb5rsKEBcGWCu6AdZ-mCLeRQPWzkXWtYD1Wjw7-0ptPLEzmWmOvG7sNAfpeor8PC69Nv5g6D30ZADr1k6TjeB5PXowgVwnW_rKHOPEeX6Omn6QIafbbZKXDwaYRQVxFnGx07yB_doVbzdveK_e-r98bGRPYWsHWGgTBP4M23bYxXtyQVvDIOPbOx7Suw09KEiv8X7AjAHivlzt2WJ00HLUv0mtSchZJ_VI6rj7ld7FMDDGWFmWaX5isrEuRFta64ipZZpjZcnYt878b3qiKqFKUcqEqlOWF3lapCeRDFXWiJI6Ls4dz2WRdkXDC542qkEleJEVia6Qo-DidOancyHwmJdKFXRuJJYSSUg4c5qkHo9RxtG6PtHeL1RlJ1FiMsqGRr_H_9P2NeWuWnU3S-_hzEftg__XIugwrh_N00zm8Tku4tvEtk76gXyyuLEaQph9NAtrwLrXYViaY2unPX5fU7jq9ID1KvVPAAAA___7oSdA">