PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

Free OpenACC Webinar

Compiling Warnings..."type conversion of subscript..&qu
Goto page Previous  1, 2, 3  Next
 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling
View previous topic :: View next topic  
Author Message
mecej4



Joined: 19 Jun 2011
Posts: 55

PostPosted: Wed Feb 19, 2014 4:02 pm    Post subject: Reply with quote

Torkin wrote:

Code:

        Double precision index
        ....
       amat(3*i-2,3*j-2) = coH(Index*9+1)
       amat(3*i-2,3*j-1) = -coG(Index*9+2)


There you see the source of the warning messages -- subscripts are expected to be integer variables or expressions. Why did you declare 'Index' as a real type instead of an integer type?


Last edited by mecej4 on Thu Feb 20, 2014 1:42 pm; edited 1 time in total
Back to top
View user's profile
Torkin



Joined: 18 Apr 2012
Posts: 31

PostPosted: Thu Feb 20, 2014 7:33 am    Post subject: Reply with quote

Dear Mat

I really appreciate your help. I know these warning might seem immature to you and I apologize for that.

Migrating from an old compiler "powerstation" to PGI Workstation has made me content about what I can achieve. It is just a matter of time before I figure out all those default things that I took for granted on powerstation.

Your replies are always to the point, thank you again.

Ahmed
Back to top
View user's profile
Torkin



Joined: 18 Apr 2012
Posts: 31

PostPosted: Thu Feb 20, 2014 7:54 am    Post subject: Reply with quote

Mat

If I may ask.. CPU_Time does not work with me and it worked with no problems on Powerstation.

Do you suggest a better subroutine to measure elapsed time in seconds to use with PGI?

Ahmed
Back to top
View user's profile
mkcolg



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

PostPosted: Thu Feb 20, 2014 9:16 am    Post subject: Reply with quote

Hi Ahmed,

Can you give more detail as to what you mean by "CPU_Time does not work"? Are you getting zero values? The clock resolution on Windows is fairly poor so your if your compute time is less then this resolution then it would produce zeros.

Some other timers you could investigate are the Fortran Standard "system_clock" call, the Lib3f "time", "secnds", "dsecnds" routines, or the OpenMP omp_get_wtime.

- Mat
Back to top
View user's profile
Torkin



Joined: 18 Apr 2012
Posts: 31

PostPosted: Thu Feb 20, 2014 9:50 am    Post subject: Reply with quote

I am getting zeros although the .exe file took 1:30hrs to complete..
While the same compiled code from powerstation gives a .exe file that give the time elapsed no problem

Ahmed
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
Goto page Previous  1, 2, 3  Next
Page 2 of 3

 
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