OMP: Error #136: Cannot create thread.
OMP: System error #8: Not enough storage is available to process this command.
OMP: Error #178: Function GetExitCodeThread() failed:
OMP: System error #6: The handle is invalid.
OpenMP Support was enabled in aVisual Studio's project: Generate Parallel Code (/openmp, equiv. to /Qopenmp).
OS: Windows XP 32-bit
IDE: Visual Studio 2005 SP1
C++ compiler: Intel C++ Composer XE 2011 Update 9
I finally resolved it and my test application created more than 16,384 threads. A maximum number of threads I was able
to see was18,623!
I'll provide more details later today.
Here are a couple of questions:
How many threads did it create on your system?
Is it a32-bit or 64-bit system?
By default your example creates Win32 threads with a 1MBstack size.
I'll provide results of my tests obtained with my own Test-Case some time later. I alsowould be glad to see
your results for a 64-bit system!