GCC OpenAcc executables problems

Alexander Monakov amonakov@ispras.ru
Mon Jan 4 19:52:00 GMT 2016


(adding gcc-help back to Cc:)

On Mon, 4 Jan 2016, Esteban Hernández wrote:
> Thanks Alexander for your answer,
> 
> Attach the phi.c

You have to ensure that 'pi' is copied back from the device by using 'copy' or
'copyout' clause on the 'parallel' directive, because scalar vars are
firstprivate by default.

Alexander


More information about the Gcc-help mailing list