This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH 0/5] OpenMP/PTX: improve correctness in SIMD regions
- From: Alexander Monakov <amonakov at ispras dot ru>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: Richard Biener <richard dot guenther at gmail dot com>, GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 1 Feb 2017 16:28:14 +0300 (MSK)
- Subject: Re: [PATCH 0/5] OpenMP/PTX: improve correctness in SIMD regions
- Authentication-results: sourceware.org; auth=none
- References: <20170118143256.GN1867@tucnak> <alpine.LNX.2.20.13.1701181744370.21719@monopod.intra.ispras.ru> <20170118150026.GR1867@tucnak> <alpine.LNX.2.20.13.1701181817330.21719@monopod.intra.ispras.ru> <20170118154723.GU1867@tucnak> <alpine.LNX.2.20.13.1701181908550.21719@monopod.intra.ispras.ru> <20170118162220.GV1867@tucnak> <alpine.LNX.2.20.13.1701181938130.21719@monopod.intra.ispras.ru> <20170118173100.GZ1867@tucnak> <alpine.LNX.2.20.13.1701191623520.28155@monopod.intra.ispras.ru> <20170119142328.GM1867@tucnak> <alpine.LNX.2.20.13.1701191850580.28155@monopod.intra.ispras.ru> <alpine.LNX.2.20.13.1701252056490.14987@monopod.intra.ispras.ru>
Hi,
Earlier Richard mentioned the possibility to special-case GOMP_SIMT_ENTER to
allow passing privatized variables to it by reference without making them
addressable. I now see that such special-casing is already done for
IFN_ATOMIC_COMPARE_EXCHANGE in tree-ssa.c: execute_update_addresses_taken ().
If that's the only place in the compiler where such special casing needs to
happen, and the rest of the compiler already tolerates it, can we indeed do:
void *simtrec = GOMP_SIMT_ENTER (&var1, &var2, ...);
for (...) { ... }
var1 ={v} {CLOBBER};
var2 ={v} {CLOBBER};
... ;
GOMP_SIMT_EXIT (simtrec, &var1, &var2, ...)'
Thanks.
Alexander