PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

call to cuMemHostRegister returned error 1

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



Joined: 31 Jan 2013
Posts: 1

PostPosted: Tue Mar 05, 2013 11:38 am    Post subject: call to cuMemHostRegister returned error 1 Reply with quote

Dear All,

I get this error "call to cuMemHostRegister returned error 1 " when I run my Fortran program using OpenACC directives.
Our version of PGI is 13.2 and we are running this program on a NVIDIA M2070

One thing that is unique here is that one of the array is a four-dimensional array in Fortran. So my question is what am I doing wrong here. Do I need to provide array indices in the copyin? Please help.

.... program
....
!$acc data copyin(a,b,c), create(t,u)
! here "a" is a four dimensional array, and "b" & "c" are 2d array
....
....
!$acc kernels
....
!$acc end kernels
....
....
!$acc update host(a)
....
....
....
!$acc end data
.....
! prgram end
Back to top
View user's profile
mkcolg



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

PostPosted: Tue Mar 05, 2013 12:18 pm    Post subject: Reply with quote

Hi AmitSMU,

"cuMemHostRegister" is the call to lock host page-memory. So my best guess is the error is occurs at your update host directive. You can double check by setting the environment variable "PGI_ACC_DEBUG=1" to see all the calls made to the CUDA run time.

Now why this is occurring, I unfortunately can't tell. Error 1 means that an invalid value was passed to "cuMemHostRegister". If you can send a reproducing example to PGI Customer Service (trs@pgroup.com) we should be able to determine what value and why it's invalid.

Thanks,
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
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 © 2001, 2002 phpBB Group