Allocate large array in PGI Fortran

前端 未结 2 885
北荒
北荒 2021-01-15 03:17

I am trying to allocate an real array finn_var(459,299,27,24,nspec) in Fortran. nspec = 24 works ok, while nspec = 25 not. No error message for allocation process, but print

2条回答
  •  走了就别回头了
    2021-01-15 03:43

    Your problem is most likely a memory issue.

    You array demands 459*299*27*24 * 4B per nspec (assuming default real requires 4B of memory). For nspec == 24 this results in a memory requirement of approximately 7.95GiB, while nspec == 25 needs around 8.28GiB.

    I guess, your physical memory is limited to 8GiB or some ulimit limits the amount of allowed memory for this process.

提交回复
热议问题