Is it possible that PGI Fortran can detect an undefined variable that is being used in a kernel.
I get this ICE error when I accidentally use an undeclared variable, and the error message is quite hard to know what the error is.
1 error detected in the compilation of “/tmp/pgnvdgr_bsRajrAKl.nv0”.
PGF90-F-0000-Internal compiler error. pgnvd job exited with nonzero status code 0 (leak_gpu_utility.f95: 464)
PGF90/x86-64 Linux 10.9-0: compilation aborted
For example: Even though b can be defined somewhere else on in the host code (to reside on global device memory), there is a possibility that b is an undefined variable, and PGI Fortran v10.9 cannot detect this.
attributes(global) subroutine mykernel() use cudafor implicit none integer:: r_a r_a = b // b is not declared end subroutine