I am running VMware 8.1.0 on a Mac Laptop with OS X El Capitan. In the virtual machine, I have installed Windows 7 with Microsoft Visual Studio 2012 (Professional Edition) and Intel® Parallel Studio XE Professional Edition for Fortran Windows (2017). The virtual machine has 4 processors allocated.
My issue arises when I try running a code containing OpenMP directives. This code runs fine on a PC with Windows 7 and Microsoft Visual Studio 2012 (Professional Edition) and Intel® Parallel Studio XE Professional Edition for Fortran Windows (2016).
I have compiled the code in Release with the following options:
/nologo /O3 /free /Qopenmp /warn:all /fpe:0 /module:"x64\Release\\" /object:"x64\Release\\" /Fd"x64\Release\vc110.pdb" /libs:dll /threads /c
-heap-arrays
When I press start, I get the following error:
“Debugging information for test3.exe cannot be found or does not match. Binary was not built with debug information. Do you want to continue debugging?”
If I say yes, the code crashed:
“Microsoft Visual Studio C Runtime Library has detected a fatal error in test3.exe”
The error is in dbghook.c. In another forum I found to try Crtl+F5; in this case I get:
“severe (170): Program exception – stack overflow”
I also get this error if I try to run the exe from the command line.
The code is not in a shared folder between mac and windows.
Here is the test code I am running:
program main implicit none real,dimension(20,300,300) :: a integer :: i,j,k !$OMP parallel do private(i,j,k) do k = 1,20 do j = 1,300 do i = 1,300 a(i,j,k) = i+j+k enddo enddo enddo !$OMP end parallel do print*,'end' read(*,*) end