|
| View previous topic :: View next topic |
| Author |
Message |
escj
Joined: 30 Sep 2009 Posts: 37 Location: Laboratoire d'Aérologie, Toulouse, FRANCE
|
Posted: Fri Apr 05, 2013 8:59 am Post subject: Compilation PB with mirror/update and & use only => r |
|
|
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 |
|
 |
mkcolg
Joined: 30 Jun 2004 Posts: 4996 Location: The Portland Group Inc.
|
Posted: Fri Apr 05, 2013 1:03 pm Post subject: |
|
|
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 |
|
 |
escj
Joined: 30 Sep 2009 Posts: 37 Location: Laboratoire d'Aérologie, Toulouse, FRANCE
|
Posted: Wed Apr 10, 2013 1:26 am Post subject: |
|
|
Thanks you Mat .
A+
Juan |
|
| Back to top |
|
 |
jtull
Joined: 30 Jun 2004 Posts: 233
|
Posted: Thu May 16, 2013 6:53 pm Post subject: |
|
|
Juan,
TPR 19260 has been fixed in the 13.5 release.
thanks,
dave |
|
| Back to top |
|
 |
|
|
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 © 2001, 2002 phpBB Group
|