PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

Free OpenACC Webinar

-Mlarge_arrays netcdf 3.6.0-p1

 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling
View previous topic :: View next topic  
Author Message
magi



Joined: 26 Jan 2006
Posts: 3

PostPosted: Tue Mar 21, 2006 10:24 am    Post subject: -Mlarge_arrays netcdf 3.6.0-p1 Reply with quote

Hi all,
I am trying to compile netCDF with large array support and the fortran 90 interface. However I am miserably failing. My strong suspicion is that the size intrinsic and friends does not return default kind integers when code compiled with -Mlarge_arrays. The f90 interface therefore fails to build. Has anyone managed to get around this problem or any suggestions are welcome.
Cheers
magnus
Back to top
View user's profile
mkcolg



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

PostPosted: Tue Mar 21, 2006 3:02 pm    Post subject: Reply with quote

Hi Magnus,

Are you getting something like this?

Code:
pgf90 -c -Msignextend -fastsse -Mlarge_arrays  -Vdev    netcdf.f90
PGF90-S-0095-Expression has wrong data type (./netcdf_text_variables.f90: 57)
  0 inform,   0 warnings,   1 severes, 0 fatal for nf90_put_var_1d_text


Excert from "netcdf_text_variables.f90":
Code:

     integer, dimension(nf90_max_var_dims) :: localStart, localCount, localStride, localMap
     integer                               :: counter
...
     localStart (:         ) = 1
     localCount ( :numDims+1) = (/ len(values(1)), shape(values) /)
     localCount (numDims+2:) = 0


The problem here that localCount is an integer, however when you use "-Mlarge_arrays", the data type of array intrinsics, i.e. SHAPE, LBOUND, UBOUND, etc, becomes INTEGER*8. When I change all the SHAPE calls to "int(shape(values))", NetCDF compiles and the fortran tests run correctly.

Hope this helps,
Mat
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling 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