PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

Error 487
Goto page 1, 2  Next
 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling
View previous topic :: View next topic  
Author Message
BeverleyWilliams51212



Joined: 31 Aug 2011
Posts: 2

PostPosted: Fri Sep 09, 2011 6:42 pm    Post subject: Error 487 Reply with quote

Hi

I have brought the PGI complier moving away from the Intel complier, but so far I am regretting doing so as the PGI complier is far fussy than the Intel complier I was using. I can't get my Fortran program to run. Even after changing many tiny issues (which the Intel complier would just breeze past) I can get I get the program to compile, but then I get this error.
Quote:

pr_set_mem:failed to write 4 bytes at address 0000000000067D7A0 (error 487)


I have search on Google, this site and the user manuals so far I have found nothing related to this "pr_set_mem error 487"

The code I am running is very long so I doubt I can post it here. If there are any other details I can provide to help locate the problem please tell me.
Back to top
View user's profile
BeverleyWilliams51212



Joined: 31 Aug 2011
Posts: 2

PostPosted: Fri Sep 09, 2011 6:56 pm    Post subject: Module main problem Reply with quote

By playing around with a sample file I found the source of the error. It comes from use of "module", Can some one please explain why this is happening?

Code:

Module Main

     !     Declarations for main program
      REAL A,B,C
      REAL AV, AVSQ1, AVSQ2
      REAL Pythagoras1
     
!     Enter the data
      DATA A,B,C/5.0,2.0,3.0/
                                        
End Module Main 

   PROGRAM FUNDEM

    use MAIN
!     Calculate the average of the numbers
      AV = AVRAGE(A,B,C)
      AVSQ1 = AVRAGE(A,B,C) **2
        AVSQ2 = AVRAGE(A**2,B**2,C**2)
        Pythagoras1 = Pythagoras(a,b,c)

     PRINT *,'Statistical Analysis'
      PRINT *,'The average of the numbers is:',AV
      PRINT *,'The average squared of the numbers: ',AVSQl
      PRINT *,'The average of the squares is: ', AVSQ2
      PRINT *,'The average of the squares is: ', AVSQ2
      PRINT *,'Pythagoras1', Pythagoras1
      pause
      END

     REAL FUNCTION AVRAGE(X,Y,Z)
     REAL X,Y,Z,SUM
     SUM = X + Y + Z
     AVRAGE = SUM /3.0
     RETURN
     END
     
    REAL Function Pythagoras(x,y,z)

   real ::  x,y,z

   Pythagoras = sqrt(x*x + y*y + z*z)

   END Function
Back to top
View user's profile
mkcolg



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

PostPosted: Mon Sep 12, 2011 9:59 am    Post subject: Reply with quote

Hi Beverley,

I'm sorry your having problems. I have never seen this particular error before, and like you, can't find any information as to what "pr_set_mem" is. It's not a PGI routine and I suspect it's coming from the Linux kernel. Also, for good or bad, your example works fine for me.

Can you please let us know what version of the compiler you're using, what OS version, your processor, and your command line flags?

Thanks,
Mat
Back to top
View user's profile
sizheng



Joined: 22 May 2012
Posts: 8

PostPosted: Tue Jul 24, 2012 11:08 pm    Post subject: the same problem Reply with quote

i've come to the same problem.

i'm using windows server 2008 R2 64.

the code was wrote under VS2012 and works well in VS2012.

what is it?
Back to top
View user's profile
sizheng



Joined: 22 May 2012
Posts: 8

PostPosted: Tue Jul 24, 2012 11:12 pm    Post subject: Reply with quote

is it possible that it's an error from jre?

mkcolg wrote:
Hi Beverley,

I'm sorry your having problems. I have never seen this particular error before, and like you, can't find any information as to what "pr_set_mem" is. It's not a PGI routine and I suspect it's coming from the Linux kernel. Also, for good or bad, your example works fine for me.

Can you please let us know what version of the compiler you're using, what OS version, your processor, and your command line flags?

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

 
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