- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello there,
These days I am struggling with allocating big matrices. The error is "forrtl severe (41) insufficient virtual memory".
But I am pretty sure the virtual memory is big enough, its round 8000MB, more importantly I have 128G physical memory.
I am on a 64-bit windows operating system. According to the knowledge I get from other's questions on this forum,
I am running a 32-bit application even though the operating system is 64 bit, right?
But the problem is, how to switch to a 64-bit built? As far as I know, Visual Studio has always been a 32 bit platform.
I tried to reinstall IVF, but the default path is "C/:program files(x86)/...". So I guess I was reinstalling a 32-bit software again.
I also searched the buttons in the menus of IVF, either did I find any choice for a 64-bit built.
I really need help.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Visual studio installs all components to support either 32 or 64 bit target mode. If building in the gui, you are correct that projects default to 32 bit mode. If you have installed ifort intel64, switching your project target to x64 works just as it does for c++.
Vs2008 was the last one where x64 support was a sub-option.
Ifort, like vs, installs separate shortcuts to open cmd windows set up for 32 or 64 bit mode.
The fact that both the 32 and 64 bit ifort are installed in program files x86 does not invalidate the above.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
All of the product files are installed under "Program Files (x86)".
- In Visual Studio, to switch to a 64-bit configuration select Build > Configuration Manager.
- Click on Active Solution Platform and select <New...>
- In the new dialog that appears, click in "Type or select the new platform" and select x64. Click OK, then Close.
Please note that you will still be limited to 2GB static code and data, and 1GB stack. If you want to make use of more virtual address space for large arrays, make them ALLOCATABLE and allocate them to the desired size.
As Tim notes, some editions of Visual Studio don't install x64 support by default and you may need to "modify" the Visual Studio install (through Control Panel > Programs and Features) to add it.

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page