On Wed, May 13, 2015 at 10:19:31PM +0200, Thomas Schwinge wrote:
> +/* Kernel helper for compare-and-exchange. */
> +static int
> +nvidia_cas (int oldval, int newval, int *ptr)
> +{
> + int ret;
> +
> + asm volatile ("atom.cas.b32 %0, [%1], %2, %3;" : "=r"(ret) : "r"(ptr),
> + "r"(ol
Hi!
On Fri, 10 Apr 2015 09:20:30 -0700, Cesar Philippidis
wrote:
> This patch implements the various atomic __sync_* functions inside
> libgcc. The original [motivation], were the calls to
> __sync_val_compare_and_swap_1 by openacc kernels involving boolean
> expressions. The reason for this fai