Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29533 Discussions

64 bit application halts at 4GB memory load

TiborKibedi1
Beginner
954 Views

I have a 64 bit program using allocatable memory to store large arrays. The execution halts, when memory loading reach 4 GB. The executable itself is 8 MB. I am using VS 2022 v17.14.24 and Intel Fortran Compiler 2025.3. Any recommendation to resolve this issue.

0 Kudos
1 Solution
Steve_Lionel
Honored Contributor III
885 Views

I have nothing to contribute here.

View solution in original post

6 Replies
Arjen_Markus
Honored Contributor II
949 Views

A colleague ran into a problem that reminds me of the symptoms you describe. Apparently he had to change the paging settings on his Windows system to solve it. How he did that, he did not mention, but the all-knowing Internet helped out. In his case: an initial setting of 40 GB and a maximum of 80 GB did the trick.

0 Kudos
TiborKibedi1
Beginner
937 Views

I seen this suggestion on the web and set the virtual memory to 60 GB and now to 80 GB, but the problem persists.

The system has 32Gb RAM, Win 11 Pro. At the point, when the code halts, the total memory load is only 60%. 

The code was built Release & x64 configuration. It uses MKL library (Sequential (/Qmkl:sequential) nd a few libraries: mkl_blas95_lp64.lib mkl_intel_lp64.lib mkl_sequential.lib mkl_core.lib. I believe all are 64 bit ones.

0 Kudos
JohnNichols
Honored Contributor I
925 Views

Are you up to date with the latest VS and ONEAPI, the 2025 IFX is getting better each time. 

You may have to wait until S Lionel is awake as we are behind EU time and it is only 7:20 in Chicago.  

 

0 Kudos
jimdempseyatthecove
Honored Contributor III
896 Views

Screenshot 2026-03-04 100522.png

 Jim Dempsey

0 Kudos
Steve_Lionel
Honored Contributor III
886 Views

I have nothing to contribute here.

TiborKibedi1
Beginner
783 Views

The Win 11 system, Visual Studio 2022 and OneApi with the Fortran compiler all up to date. I wrote a very simple program to allocate a 50000 by 50000 real*8 array. It can be allocated and values set. the memory load of the program 19 GB.

It indicates the system is OK and I have to look other possible source of the problem.

Many thanks for the comments.

0 Kudos
Reply