Quantcast
Channel: Intel® Software - Intel® Fortran Compiler for Linux* and macOS*
Viewing all articles
Browse latest Browse all 2746

problem with arrays with more than 2GB elements

$
0
0

Hi everyone.

I am trying to compile and run a code that calls a subroutine, which allocates an array with about 6 billion elements. I define the array in the main code as

integer(kind=8), dimension(:), allocatable  :: adjncy

and then in the subroutine as

integer(kind=8), dimension(0:sup_neighbour*nspec-1)  :: adjncy

Here my sup_neighbor=54, and nspec=109360000.

Then I assign array elements and return it to the main program. The issue is that once it is returned all elements in adjncy are wrong. No errors are produced during compilation or execution. I tried setting -mcmodel=medium or -mcmodel=large together with -shared-intel  compiler options for ifort, but it does not change anything. I am using composer_xe_2015.2.164 on Intel64 Linux cluster. For the mpiifort I use 5.0.3.048.

Thanks.

 


Viewing all articles
Browse latest Browse all 2746

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>