PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

Compilation PB with mirror/update and & use only => r

 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Accelerator Programming
View previous topic :: View next topic  
Author Message
escj



Joined: 30 Sep 2009
Posts: 63
Location: Laboratoire d'Aérologie, Toulouse, FRANCE

PostPosted: Fri Apr 05, 2013 8:59 am    Post subject: Compilation PB with mirror/update and & use only => r Reply with quote

Hello

Refactoring a big code to remove fortran automatic array ( to avoid very costly reallocation on GPU )
... I'm trying to use a pool of generic global data , and the use only + => to rename the variable in a significant faction .

That work for CPU compilation, but not for GPU where the update clause doesn't manage correctly the renaming .

All compiler concerned :

Compile for CPU :
Code:
pgf90 test_mirror_use_only.f90 -c


Compile for GPU
Code:
 pgf90 -ta=nvidia test_mirror_use_only.f90 -c
PGF90-S-0038-Symbol, aa, has not been explicitly declared (test_mirror_use_only.f90: 10)
  0 inform,   0 warnings,   1 severes, 0 fatal for use_aa_rename


Source :
Code:
MODULE MODD_DATA
  IMPLICIT NONE
  REAL , ALLOCATABLE, DIMENSION(:) :: AA
  !$acc mirror(AA)
END MODULE MODD_DATA

SUBROUTINE USE_AA_RENAME()
  USE MODD_DATA, ONLY : MYDATA => AA
  IMPLICIT NONE 
  !$acc update host(MYDATA)
  print*,"MYDATA=",MYDATA
END SUBROUTINE USE_AA_RENAME


REM : with "USE MODD_DATA, ONLY : AA , MYDATA => AA" the sample compile again but it could by a problem if multiple variable with the same name come from different modules ( we have this case on our code ... )

A+
Juan
Back to top
View user's profile
mkcolg



Joined: 30 Jun 2004
Posts: 6134
Location: The Portland Group Inc.

PostPosted: Fri Apr 05, 2013 1:03 pm    Post subject: Reply with quote

Hi Juan,

This looks like a compiler issue where it's not correctly corresponding the symbol names in the directives. I've added a problem report (TPR#19260). Unfortunately, I don't see any quick work around. Hopefully we can get the problem resolved quickly.

Thanks,
Mat


Last edited by mkcolg on Wed Apr 10, 2013 9:49 am; edited 1 time in total
Back to top
View user's profile
escj



Joined: 30 Sep 2009
Posts: 63
Location: Laboratoire d'Aérologie, Toulouse, FRANCE

PostPosted: Wed Apr 10, 2013 1:26 am    Post subject: Reply with quote

Thanks you Mat .

A+
Juan
Back to top
View user's profile
jtull



Joined: 30 Jun 2004
Posts: 438

PostPosted: Thu May 16, 2013 6:53 pm    Post subject: Reply with quote

Juan,

TPR 19260 has been fixed in the 13.5 release.

thanks,
dave
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    PGI User Forum Forum Index -> Accelerator Programming All times are GMT - 7 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © phpBB Group