async clause for acc region

Hi,

I am trying to use the async clause for data region, but I haven’t been able to compile so far. Here is a test program:

program test
  integer :: i,j
  integer(4) :: iacc
  real :: a(100,60)
  !$acc local(a)

DO j=1,60
!$acc region async
  DO i=1,100
     a(i,j)=1+i**2+j**2
  END DO
!$acc end region
END DO


!$acc wait
!$acc update host(a)

print*, sum(a)

end program test

I though this should be valid according to the v1.3 documentation but I am getting the following error when I compile:

PGF90-S-0034-Syntax error at or near identifier async (test.f90: 8)
PGF90-S-0034-Syntax error at or near end of line (test.f90: 16)

Thanks for your help,

Xavier

PS : I am using pgi 11.3

Hi Xavier,

PGI release 11.3 supports the 1.2 PGI Accelerator Model specification. async is part of in the 1.3 specification whose implementation is in development.

Sorry for the confusion.

Mat

Just a quick question: When will 11.4 be out? Thank you!

Hi,
I also want to try the async clause, but get an error message. I use the PGI Compiler 11.7 at the moment. In which compiler version should the async clause be supported?
Bye,
Sandra

Hi Sandra,

async should be available in the first release of the PGI 2012 compilers (12.1).

  • Mat