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

    <tr>
        <th>Summary</th>
        <td>
            [OpenMP] multi-vendor multi-GPU offload not running on the requested device
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
            jhuber6
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          ye-luo
      </td>
    </tr>
</table>

<pre>
    main.cpp
```
int main()
{
 #pragma omp target device(1)
  {  }
}
```
compile line
```
clang++ -fopenmp --offload-arch=gfx906,sm_61 main.cpp
```
The machine has two GPUs.
regardless of "device(0/1)", it only hits the AMD (first) GPU.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx8Us1upTwMfRqzsUBgfi5ZsOgtoqvq6-LrehTAQKqQMElo57796FKms6lGipJYPj7OiY_0Xs2GuYHyCkRvy96zq4AIyjaSe1isa24c691GvR1vzSqVSYZtg7SF9AGq9FxHqEzAOwCoBhIn5HL9vCBQvjk5rxLtumGQbuaAI7-rgYHq7KsCES7X-9b-YWi_7TbYdVOaUSvD3wO0NDPQFeiK8WQ3NuuGcWynSVs5xtINC-TtPP0SaQX06NcfVYb_FPj_wrjKYVGGcZEew4fFp5dXn3ymHc_SjZq9RzshEH2pS4G6QyER0COqgNboGy4qeAwL48Nzi0D1pJwPQOJOmkRjk48iFzLiJqsuVBdVIapoacpLJsah7vOJpqzvRV1VJKb-MkiRD2l9iVRDKeVplhZZmRdlnpQTDWNRC5rqoi4KCUXKq1Q60fp9TaybI-X9zk0paqojLXvW_nSE4Q88kqcnXHOvift99lCkWvng_7IEFfRhpf82Ns8vULa47jqo-J3NaN0ZPL284jkENDag241RZkZrjr9w_HNnH3g8zRHtTjdLCJuH_AGoA-pmFZa9Twa7AnX37ucRb86-8RCAuuPNHqg7NP0OAAD__0Hq3YQ">