(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