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

    <tr>
        <th>Summary</th>
        <td>
            [Offload] regression on sm_60
        </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>
    I saw a regression on `sm_60` caused by #122781
after the merge I got
```
fatal error: error in backend: PTX does not support "atomic" for orderings different than"NotAtomic" or "Monotonic" for sm_60 or older, but order is: "seq_cst".
```
on the develop, error becomes.
```
fatal error: error in backend: PTX does not support "atomic" for orderings different than"NotAtomic" or "Monotonic" for sm_60 or older, but order is: "acquire".
```

reproducer, code
https://github.com/TApplencourt/OvO/blob/master/test_src/cpp/hierarchical_parallelism/memcopy-complex_double/target_teams_distribute_parallel_for.cpp

```
clang++ -fopenmp --offload-arch=sm_60 target_teams_distribute_parallel_for.cpp
```
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJzUlMGOpDYQhp-muFi0TNHA9IEDkxHSHpLJYQ-5IdsU4I1xsbaZzbx9BN3ZjUZRpBwjIYGwv9_1FdgqRjt7ohaqZ0D8suyaQg2IUL1kak8Lh_adcrdzpnl8bz-JqL4JJQLNgWK07AV7AbWM61BLqKUwao80Cv0uAMsCsXkqQHZqShREWkisFGYSn8TMCWQHJ3RcsptUUk5QCByg7O4Pwnqhlfmd_Hi8-_Xzb2JkisJzEnHfNg5JAKJKvFoDiGLiIDiMFKyfoxjtNFEgn0RalAfEXzh13-dyONif2XNi_wM_VY5BdiMFwJ-E3tM9VNh4lAGIkb4OJiZAvHzQYH96jvRGjrcDv5toMrxS_Dj9f2WtzNfdBvoHa5BdoC3wuJs7bXgkkN2S0nbQgD1gP9u07PpieAXsP3fb5sgb3kMC7F_fXgF77VgD9quK6cjpE8U0xGAAe7NtgP1iKahgFmuUGzYVlHPkbDwCV1oNb--54XVz9Mcw8q4dHSEqzJSGRGqNw2hjClbvib7jw8ThcsSfHn_XMk75GfAZ8FnkE2_k103kOU-TYzXmRyFQvtx7919W-WuJbGzL8VbeVEZt0Vzra92gLLKlpeZa0a2WN6P0rZC1weY6lbUp6qtGMzWZbVFiJStZnVxxKZWUulDNramentCUcJW0Kusuzr2tFw5zZmPcqS3Kp6qWmVOaXHzse0_fxDn62PmhPaBc73OEq3Q2pvgjJtnkzgPj9d4FqF4-nAdnP7I9uPZfPv-R97jlW-AvZI6_4KwiAvaPMt9a_DMAAP__V2h_Bg">