PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

Double Precision Problem
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
enrrr



Joined: 16 Sep 2010
Posts: 7

PostPosted: Mon Nov 01, 2010 8:35 am    Post subject: Double Precision Problem Reply with quote

Hi to all,
I developed a code in single precision (compiled with the option -r4) and it run without problems.
I bought a new GPU that supports the double precision and now i have compiled my code with the -r8 option but the executable gives me problems when i launch a kernel.
I am instrumenting my code in order to investigate where is a possible bug, do you have some suggestions?
Thanks a lot to all,
Enrico
Back to top
View user's profile
mkcolg



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

PostPosted: Mon Nov 01, 2010 12:59 pm    Post subject: Reply with quote

Hi Enrico,

Quote:
but the executable gives me problems when i launch a kernel.
What's the error?

- Mat
Back to top
View user's profile
enrrr



Joined: 16 Sep 2010
Posts: 7

PostPosted: Tue Nov 02, 2010 2:52 am    Post subject: Reply with quote

mkcolg wrote:
Hi Enrico,

Quote:
but the executable gives me problems when i launch a kernel.
What's the error?

- Mat


It's a general error:

unspecified launch failure

Enrico
Back to top
View user's profile
mkcolg



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

PostPosted: Tue Nov 02, 2010 4:43 pm    Post subject: Reply with quote

Hi Enrico,

Are you able to run any CUDA code on the new device? Does the original version compiled with "-r4" work? If not, try updating your CUDA Driver.

Otherwise, "unspecified launch failure" typically means your kernel abnormally aborted for some reason such as a memory access violation.

- Mat
Back to top
View user's profile
enrrr



Joined: 16 Sep 2010
Posts: 7

PostPosted: Fri Nov 05, 2010 2:35 am    Post subject: Reply with quote

mkcolg wrote:
Hi Enrico,

Are you able to run any CUDA code on the new device? Does the original version compiled with "-r4" work? If not, try updating your CUDA Driver.

Otherwise, "unspecified launch failure" typically means your kernel abnormally aborted for some reason such as a memory access violation.

- Mat


Hi Mat,
First of all, thanks for the reply.
When i compile my code with the "-r4" flag, it runs without any problem.
I investigated my code applying manually the types "double precision" and "double complex" instead of "real" or "complex".
I understood that i have a problem with the Z matrix in my MoM code. In particular, when i use it in single precision, the results are correct, but when i consider it in double precision, the values of the matrix become not correct.
I hope i've been clearer...Do you have any suggestion?

Enrico
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