|
| View previous topic :: View next topic |
| Author |
Message |
Tuan
Joined: 11 Jun 2009 Posts: 226
|
Posted: Sat May 15, 2010 9:14 pm Post subject: APM PGI 10.5 - !$acc do kernel |
|
|
When I use the directive "!$acc do kernel" for my loops which is supposed to run on Accelerator, there is no output during the compiling process telling whether my code is parallelizable or not.
Example
| Code: | !$acc do kernel
DO i = 1,N
Ab(i,1) = Ab(i,1) + 1/dt
DO j=1, maxnklm+maxnklp-1
compP(j,i) = compPdt(i,j)*dt + compP(j-1,i)
IF (flag.EQ.1 .AND. compP(j,i) .GE. X(i)) THEN
isfu(i) = indexPdt(i,j)
flag = 0
ENDIF
ENDDO
ENDDO
|
I used
| Quote: | | -ta=nvidia,3.0,cc13 -Minfo=accel -v |
However, when I try with "!$acc region do kernel", it compile successfully. Nevertheless, it has runtime error
| Quote: | call to cuMemcpyDtoH returned error 700: Launch failed
|
I have no idea what cause this error, as the data is small, and they are all allocated. I hope
- some one can give me a hint
- the compiler should be able to tell which variable cause this error (in Debug mode).
Thanks,
Tuan |
|
| Back to top |
|
 |
mkcolg
Joined: 30 Jun 2004 Posts: 4996 Location: The Portland Group Inc.
|
Posted: Mon May 17, 2010 3:49 pm Post subject: |
|
|
Hi Tuan,
| Quote: | | When I use the directive "!$acc do kernel" for my loops which is supposed to run on Accelerator, there is no output during the compiling process telling whether my code is parallelizable or not. | The "acc do" directive will be ignored unless it's within an accelerator region.
| Quote: |
However, when I try with "!$acc region do kernel", it compile successfully. Nevertheless, it has runtime error
Quote:
call to cuMemcpyDtoH returned error 700: Launch failed |
I'm guessing that the code is seg faulting on the GPU due to the line "compP(j,i) = compPdt(i,j)*dt + compP(j-1,i)". You're reading past the bounds of the compP loop when "j" is 1 (assuming compP's lower bound is 1).
Hope this helps,
Mat |
|
| Back to top |
|
 |
|
|
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
|