I have a problem with coarrays using Intel Parallel Studio XE 2011 on Windows 7. I have written some coarray code which works well as a standalone program with an impressive speed increase using 2/4 or 8 cores. I am now trying to integrate it into an existing Windows application using
integer function WinMain(hInstance, hPrevInstance, lpszCmdLine, nCmdShow)
This is compiled with the coarray option enabled. However, when I interrogate the program for num_images() it always returns a value of zero and not 8 which is the number of cores on this computer. this_image() is always returned as 1.
The environmental variable NUMBER_OR_PROCESSORS returns a value of 8.
Help would be much appreciated!