ICE with big size CONSTANT array

I reported this to trs a week ago, yet no feedback.

  • Internal compiler error (ICE) when I declare a CONSTANT array in a module with 10,000 elements.

/tmp/pgnvdKXheS02ym4iu.nv4(0): Error: Const space overflowed
PGF90-F-0000-Internal compiler error. pgnvd job exited with nonzero status code 0 (data.f90: 11)
PGF90/x86-64 Linux 10.2-0: compilation aborted


module data              
  use cudafor
  implicit none
  parameter(N=10000)
  integer :: N
  double precision, constant :: X(N)

contains
  subroutine dosomething()

  end subroutine dosomething
end module data

compilation command: pgf95 -c data.f95 -Mcuda

Could someone give me a hint on the maximum CONSTANT memory space.

Tuan

Could someone give me a hint on the maximum CONSTANT memory space.

64Kb.

We’ll work on a way to have you’re program error if it uses more then the allowed amount. (TPR#16618)

  • Mat

Thanks, Mat.

Tuan.