PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

copyout Memcpy FAILED:4
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
sinsin



Joined: 11 Dec 2008
Posts: 11

PostPosted: Fri Jul 23, 2010 8:01 pm    Post subject: copyout Memcpy FAILED:4 Reply with quote

Hi,

What is happening about that ?

copyout Memcpy (host=0xc0edd80, dev=0x100400, size=640000) FAILED:4

My configuration is:

FX4600

CUDA 3.0

CUDA Fortran 10.5

RedHat 5

I have reinstall the GPU driver and CUDA twice, but it is still fail ...

On the other hand this program is workable in my another PC.

GT240

CUDA 3.0

CUDA Fortran 10.5

Fedora 12

Any one could help me?

Many Thanks~
Back to top
View user's profile
mkcolg



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

PostPosted: Sat Jul 24, 2010 10:45 am    Post subject: Reply with quote

My best guess is that you've run out of memory. How much total memory are you using on the GPU?

- Mat
Back to top
View user's profile
sinsin



Joined: 11 Dec 2008
Posts: 11

PostPosted: Sun Jul 25, 2010 6:01 am    Post subject: Reply with quote

Hi Mat,

This is the output of pgaccelinfo:

CUDA Driver Version 3000

Device Number: 0
Device Name: Quadro FX 4600
Device Revision Number: 1.0
Global Memory Size: 804585472
Number of Multiprocessors: 12
Number of Cores: 96
Concurrent Copy and Execution: No
Total Constant Memory: 65536
Total Shared Memory per Block: 16384
Registers per Block: 8192
Warp Size: 32
Maximum Threads per Block: 512
Maximum Block Dimensions: 512, 512, 64
Maximum Grid Dimensions: 65535 x 65535 x 1
Maximum Memory Pitch: 2147483647B
Texture Alignment 256B
Clock Rate: 1200 MHz
Initialization time: 1638 microseconds
Current free memory 764674048
Upload time (4MB) 1680 microseconds (1383 ms pinned)
Download time 1651 microseconds (1335 ms pinned)
Upload bandwidth 2496 MB/sec (3032 MB/sec pinned)
Download bandwidth 2540 MB/sec (3141 MB/sec pinned)

The memory usage of the program is less than 100MB. So I think it is the cause of the fail.

I found that some people have the same problem before:

http://www.pgroup.com/userforum/viewtopic.php?t=1598&sid=d50e5096707be90143f3ab54b18e2aba

Although I have pointed the CUDALIB variable to the lib64 path of CUDA as you said before, it is still fail. The interesting thing is the accelerators works fine in my FX4600 machine.

Actually, what is the meaning of:

copyout Memcpy (host=0xc0edd80, dev=0x100400, size=640000) FAILED:4

Many Thanks!

sinsin
Back to top
View user's profile
mkcolg



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

PostPosted: Mon Jul 26, 2010 11:24 am    Post subject: Reply with quote

Hi sinsin,
Quote:

The interesting thing is the accelerators works fine in my FX4600 machine.
I assume you meant that it fails on the FX4600 but succeeds on the GT240?

If the program fails when copying data back from the GPU, it's usually an indication that the kernel abnormally exited for some reason. Try trapping the error by placing the following code just after your kernel launch:
Code:
istat = cudathreadsynchronize()
errCode = cudaGetLastError()
if (errCode .gt. 0) then
       print *, cudaGetErrorString(errCode)
       stop 'Error! Kernel failed!'
endif


- Mat
Back to top
View user's profile
sinsin



Joined: 11 Dec 2008
Posts: 11

PostPosted: Tue Jul 27, 2010 7:39 am    Post subject: Reply with quote

Hi Mat,

Yes, it fails on the FX4600 but succeeds on the GT240.

Does it mean there are some softwares I do not installed in the FX4600 machine, which have been already installed in GT240 machine?

I have placed the following code after the kernel launch.

Code:
istat = cudathreadsynchronize()
errCode = cudaGetLastError()
if (errCode .gt. 0) then
       print *, errCode
       stop 'Error! Kernel failed!'
endif


The output is that:

Simulation Start !!!

***** CALLING SUBROUTINE *****

0.000000
Error! Kernel failed!

Any clue?

Thanks a lots!

sinsin
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