Joined: 26 Sep 2010
|Posted: Fri Oct 08, 2010 6:05 am Post subject: do seq loop
I'm using Accelerator on a MD code. But I found that the result is somehow not updated at each timestep.
I simplified my code as following:
!$acc data region copyin(f),copy(ff)
!$acc do seq
!$acc end region
!$acc end data region
The output of "ff" is a zero vector. However, if i change the "k loop" to "do host", the result is correct.
Can anyone point out my mistake in the code?