PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

Free OpenACC Course

Debugging a CUDA kernel in Fortran

 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Accelerator Programming
View previous topic :: View next topic  
Author Message
otfried



Joined: 01 Mar 2012
Posts: 2

PostPosted: Thu Mar 01, 2012 8:31 am    Post subject: Debugging a CUDA kernel in Fortran Reply with quote

Hi,

we are prgramming Fortran in our group and
want to write CUDA code.

But writing CUDA code and not being
able to use a Debugger to step through it
(pgdbg or totalview or ... ) is not an option - for the
scientists around me.

Totalview would be usable, but the Portland Fortran compiler we have
does not include debugging information for the CUDA code.
"The Cuda kernel module was not compiled with -G" is the error
message.

pgdbg does not allow me to step through the CUDA code.

I hope there is a solution to this problem.

Cheers,
Otfried
Back to top
View user's profile
mkcolg



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

PostPosted: Thu Mar 01, 2012 8:45 am    Post subject: Reply with quote

Hi Otfried,

To debug CUDA Fortran, compile in emulation mode (-Mcuda=emu) and then run within PGDBG.

We are working on debugging on the device, but this support wont be available till later this year.

- Mat
Back to top
View user's profile
otfried



Joined: 01 Mar 2012
Posts: 2

PostPosted: Fri Mar 02, 2012 2:35 am    Post subject: Reply with quote

mkcolg wrote:
Hi Otfried,

To debug CUDA Fortran, compile in emulation mode (-Mcuda=emu) and then run within PGDBG.

We are working on debugging on the device, but this support wont be available till later this year.

- Mat


Hi Mat,

that is good news :-)

Emulation mode is good enough for getting a better understanding
of how CUDA actually excutes the program and
debugging on the device anyway disturbs the real-time execution.

Cheers,
Otfried
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    PGI User Forum Forum Index -> Accelerator Programming 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