PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

Trouble Getting Started CUDA/PGI Fortran
Goto page Previous  1, 2, 3, 4, 5, 6, 7
 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Accelerator Programming
View previous topic :: View next topic  
Author Message
Dolf



Joined: 22 Mar 2012
Posts: 100

PostPosted: Fri Nov 09, 2012 2:29 pm    Post subject: RE: Reply with quote

how can I tell its a stack overflow?? please advice.

I am able to go to the subroutine now, when I call the kernel, I get the error code 30, which is unknown!
I have cleared all the content of the kernel sub, still get the same error
here is the kernel:

attributes (global) subroutine GetReynVarqni_kernel(nx,ny,ndx,ndy)

implicit none
integer :: i, j, k
integer, value :: nx,ny,ndx,ndy


i = (blockidx%x - 1) * blockDim%x + threadidx%x
j = (blockidx%y - 1) * blockDim%y + threadidx%y


if( i >=2 .AND. i <= nx ) then
if ( j >=2 .AND. j <= ny-1 ) then



endif ! (j <= ny)
endif ! (i <= nx)
return
end subroutine GetReynVarqni_kernel

I am calling it like this:
from the host subroutine:

nx = 20
ny = 20 (I can see there values correctly when reach breakpoint)
(they are also host integer )

threads = dim3(32,16,1)
grid = dim3(ceiling(real(nx)/threads%x), &
ceiling(real(ny-1)/threads%y),1)



call GetReynVarqni_kernel<<<grid,threads>>>(nx,ny,ndx,ndy)
istat = cudaThreadSynchronize()
if (istat .ne. 0) print*, ' GRV qni kernel error ',cudaGetErrorString(istat)


after I reach here, the istat reads 30

any ideas??

Dolf
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 Previous  1, 2, 3, 4, 5, 6, 7
Page 7 of 7

 
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