Unfortunately, I can’t post the code itself. However, Minfo displays the line number 13003 as well:
13003, Generating present_or_copy(xskydisk(:nradius,:ntheta))
Generating present_or_copy(yskydisk(:nradius,:ntheta))
Generating present_or_copy(zskydisk(:nradius,:ntheta))
Generating present_or_copyin(dtopy(:ndtop))
Generating present_or_copyin(dtopx(:ndtop))
Generating present_or_copyin(ytop2horiz(:ntop2))
To give some idea of how the code is setup:
subroutine mainsubroutine(xtop2horiz, ytop2horiz, x2darray, y2darray, x2d, y2d, ntop2)
dimension xtop2horiz(ntop2), ytop2horiz(ntop2), x2darray(x2d, y2d), y2darray(x2d, y2d)
!$acc kernels
do j = 1, N
do i = 1, N
if (numb.ge.100) then
returnedint = someint
returnedfloat = somefloat
call somesubroutine(xtop2horiz, ytop2horiz, x2darray, y2darray, returnedint, returnedfloat)
endif
enddo
endo
!$acc end kernels
return
end
The compiler inlines all functions, which seems to work great for the other parts of the code that I’ve done this for. It’s only when I add the kernels and end kernels directives around that particular piece of code that the program presents the error (after compiling without any).
I realize this isn’t very useful, but if you have any ideas I’d greatly appreciate it.