> fail to link ("unresolved symbol __atomic_compare_exchange_16") with and 
> without the patch.

Can you try linking with `-latomic`? Namely, add 
`/* { dg-additional-options "-foffload-options=nvptx-none=-latomic" { target 
offload_target_nvptx } } */`
to those tests and check whether they now PASS. If it helps, please fix those 
testcases.

Thanks!

--
https://forge.sourceware.org/gcc/gcc/pulls/278#issuecomment-8261

Reply via email to