PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

Free OpenACC Webinar

cudaMallocPitch compile error
Goto page 1, 2  Next
 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Accelerator Programming
View previous topic :: View next topic  
Author Message
JDS7



Joined: 19 Aug 2011
Posts: 17

PostPosted: Tue Oct 18, 2011 11:49 am    Post subject: cudaMallocPitch compile error Reply with quote

I'm trying to use cudaMallocPitch():
Code:

r = cudaMallocPitch(udev, pitch, nx, ny*nz)

(where udev is an array of floats, and r, pitch, nx, ny, and nz are integers)

When I try to compile, I get the following error:

"PGF90-S-0155-Could not resolve generic procedure cudamallocpitch"

Apparently TheMatt got cudaMallocPitch() to work (see post from 2009: http://www.pgroup.com/userforum/viewtopic.php?t=1978 ) and as far as I can tell, I'm using the function the same way he did. Any ideas?

I'm using pgfortran 10.2-0, should that be a problem?

Thanks!
Back to top
View user's profile
mkcolg



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

PostPosted: Tue Oct 18, 2011 1:20 pm    Post subject: Reply with quote

Hi JDS7,

You're using an very early version of CUDA Fortran which did not have the builtin interface for cudaMallocPitch. You will either need to update your compiler version or add your own explicit interface.

- Mat
Back to top
View user's profile
JDS7



Joined: 19 Aug 2011
Posts: 17

PostPosted: Tue Oct 18, 2011 1:59 pm    Post subject: Reply with quote

Okay. Thanks!
Back to top
View user's profile
JDS7



Joined: 19 Aug 2011
Posts: 17

PostPosted: Tue Oct 25, 2011 8:27 am    Post subject: Reply with quote

Hi Mat,

I'm getting the same error using pgfortran 11.2-1. Is that still not new enough? What version do I need?

Thanks
Back to top
View user's profile
mkcolg



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

PostPosted: Tue Oct 25, 2011 10:19 am    Post subject: Reply with quote

Hi JDS7,

Quote:
11.2-1. Is that still not new enough?
No, this should be fine. My best guess either one of your arguments had the wrong data type or your return values isn't an integer.

How is udev declared? Is "r" an integer?

- Mat
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
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