The Windows SDK compiler has OpenMP support, but you might need this patch:
http://www.microsoft.com/en-us/download/details.aspx?id=5687
You will need it unless you have Windows update set to update Visual
Studio.
Also remember to use the SDK version for .NET 3.5 for Python 2.7. Do not
use a newer Windows SDK.
A better solution is to use a recent MinGW (e.g. GCC 4.8.2) than a six year
old MSVC compiler. I recommend TDM-GCC.
Sturla
Yuxiang Wang <
wangyux...@gmail.com> wrote:
> I found this here:
>
> <a
> href="
https://mail.python.org/pipermail/cython-devel/2011-March/000227.html">
https://mail.python.org/pipermail/cython-devel/2011-March/000227.html</a>
>
> "The free C/C++ compiler in Windows SDK supports OpenMP. This is the system
> C compiler on Windows. Visual C++ Express is an IDE for beginners and
> hobbyists. OpenMP on GCC is the same on Windows as on any other platform.
> Sturla"
>
> However, as I mentioned in the OP, I installed Windows SDK, done `set
> DISTUTILS_USE_SDK=1`, and `setenv /x64 /release` , it still reports cannot
> find 'omp.h', because the file does not come with Windows SDK.
>
> -Shawn
>
> On Thursday, May 29, 2014 12:45:36 PM UTC-4, Yuxiang Wang wrote:
>>
>> Dear all,
>>
>> I have a question: how do I use Cython with OpenMP in Windows?
>>
>> According to this link
>> <a
>> href="
https://github.com/cython/cython/wiki/64BitCythonExtensionsOnWindows">
https://github.com/cython/cython/wiki/64BitCythonExtensionsOnWindows</a>
>> I
>> would be better off using MSVC. However, with VC++ 2010 Express Edition,
>> OpenMP support is not included. I also tried to install Windows SDK, but
>> the same error (no omp.h) pops up again.
>>
>> I don't think I am the first one who ran into this... Could anyone give me
>> a hint?
>>
>> Thank you!
>>
>> Shawn
>>
>
> --
>
> ---
> You received this message because you are subscribed to the Google Groups
> "cython-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
cython-users...@googlegroups.com.
> For more options, visit <a
> href="
https://groups.google.com/d/optout.">
https://groups.google.com/d/optout.</a>
>
> ------=_Part_307_18900193.1401390867991
> Content-Type: text/html; charset=UTF-8
> Content-Transfer-Encoding: quoted-printable
>
> <div dir=3D"ltr">I found this here:<div><br></div><div>
https://mail.python.=
> org/pipermail/cython-devel/2011-March/000227.html</div><div><br></div><div>=
> "The free C/C++ compiler in Windows SDK supports OpenMP. This is the syste=
> m C compiler on Windows.
>
> Visual C++ Express is an IDE for beginners and hobbyists.
>
> OpenMP on GCC is the same on Windows as on any other platform.
>
> Sturla"</div><div><br></div><div>However, as I mentioned in the OP, I insta=
> lled Windows SDK, done `set DISTUTILS_USE_SDK=3D1`, and `setenv /x64 /relea=
> se` , it still reports cannot find 'omp.h', because the file does not come =
> with Windows SDK.</div><div><br></div><div>-Shawn<br><br><br>On Thursday, M=
> ay 29, 2014 12:45:36 PM UTC-4, Yuxiang Wang wrote:<blockquote class=3D"gmai=
> l_quote" style=3D"margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;=
> padding-left: 1ex;"><div dir=3D"ltr">Dear all,<div><br></div><div>I have a =
> question: how do I use Cython with OpenMP in Windows?</div><div><br></div><=
>> According to this link <a href=3D"
https://github.com/cython/cython/wiki=
> /64BitCythonExtensionsOnWindows" target=3D"_blank" onmousedown=3D"this.href=
> =3D'
https://www.google.com/url?q\75https%3A%2F%2Fgithub.com%2Fcython%2Fcyth=
> on%2Fwiki%2F64BitCythonExtensionsOnWindows\46sa\75D\46sntz\0751\46usg\75AFQ=
> jCNF8q2LqhQ56FHs_t9dmZ-oueAZpmg';return true;" onclick=3D"this.href=3D'http=
> s://
www.google.com/url?q\75https%3A%2F%2Fgithub.com%2Fcython%2Fcython%2Fwik=
> i%2F64BitCythonExtensionsOnWindows\46sa\75D\46sntz\0751\46usg\75AFQjCNF8q2L=
> qhQ56FHs_t9dmZ-oueAZpmg';return true;">
https://github.com/cython/<wbr>cytho=
> n/wiki/<wbr>64BitCythonExtensionsOnWindows</a> &nbsp; I would be better off=
> using MSVC. However, with VC++ 2010 Express Edition, OpenMP support is not=
> included. I also tried to install Windows SDK, but the same error (no omp.=
> h) pops up again.</div><div><br></div><div>I don't think I am the first one=
> who ran into this... Could anyone give me a hint?</div><div><br></div><div=
>> Thank you!</div><div><br></div><div>Shawn</div></div></blockquote></div></=
>>
>
> <p></p>
>
> -- <br />
> <br />
> --- <br />
> You received this message because you are subscribed to the Google Groups &=
> quot;cython-users&quot; group.<br />
> To unsubscribe from this group and stop receiving emails from it, send an e=
> mail to <a href=3D"mailto:
cython-users...@googlegroups.com">cython=
> -
users+un...@googlegroups.com</a>.<br />
> For more options, visit <a href=3D"
https://groups.google.com/d/optout">http=
> s://
groups.google.com/d/optout</a>.<br />
>
> ------=_Part_307_18900193.1401390867991--