Front page › Forums › Installation › OpenMP trouble in Visual Studio compilation
Tagged: OpenMP, Visual Studio, Windows
This topic contains 2 replies, has 2 voices, and was last updated by nico 8 months, 2 weeks ago.
I am using Visual Studio to compile Paralution in Windows, and I have trouble making the OpenMP work, however it works fine in my Linux machine, so I think is just some compilation setting issue.
No matter which project I compile (CUDA,OMP,OCL) I always get “No OpenMP support” in the info_paralution().
I tried to compile my projects setting “Properties -> C/CC++ -> Language -> OpenMP Support -> Yes” but still the same problem.
I tried compiling the Paralution library with this option, but then I get the following error when compiling any project:
1>d:\windowsfiles\paralution-1.0.0\paralution-1.0.0\src\base\host\host_vector.cpp(1234): fatal error C1001: An internal error has occurred in the compiler.
1> (compiler file ‘f:\dd\vctools\compiler\utc\src\p2\main.c[0x5078AC56:0x713008A4]’, line 183)
1> To work around this problem, try simplifying or changing the program near the locations listed above.
1> Please choose the Technical Support command on the Visual C++
1> Help menu, or open the Technical Support help file for more information
1>LINK : fatal error LNK1000: Internal error during IMAGE::BuildImage
1> Version 10.00.30319.01
1> ExceptionCode = C0000005
1> ExceptionFlags = 00000000
1> ExceptionAddress = 5078AC56 (506D0000) “C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\x86_amd64\c2.dll”
1> NumberParameters = 00000002
1> ExceptionInformation[ 0] = 00000000
1> ExceptionInformation[ 1] = 713008A4
1> Eax = 08BF1494 Esp = 0055EB98
1> Ebx = 0000005B Ebp = 0055EBE8
1> Ecx = 1A1C3264 Esi = 08BFDE7C
1> Edx = 08BF3F10 Edi = 08B410CC
1> Eip = 5078AC56 EFlags = 00010287
1> SegCs = 00000023 SegDs = 0000002B
1> SegSs = 0000002B SegEs = 0000002B
1> SegFs = 00000053 SegGs = 0000002B
1> Dr0 = 00000000 Dr3 = 00000000
1> Dr1 = 00000000 Dr6 = 00000000
1> Dr2 = 00000000 Dr7 = 00000000
Looking forward to your reply,
Thanks in advance,
UPDATE: I was using Visual Studio 2010. I switched to the VS2013 project, now OpenMP works, so I guess is something wrong with the project settings for VS2010.
I did some very simple tests without PARALUTION and could not get OpenMP working either. It looks to me, that there is no native OpenMP support in VS2010.
You must be logged in to reply to this topic.
PARALUTION 1.1.0 - 25th of Jan 2016