Hi, ATM stores in the non-loop parts of an oacc kernels region are executed by all gangs. This patch makes sure that those stores are only executed by gang 0. I'm not aware atm of any related failing test cases, but it at least reduces the amount of stores performed. Bootstrapped and reg-tested on x86_64. Committed to gomp-4_0-branch. Thanks, - Tom