Commit d9a5b060 authored by Joon Ro's avatar Joon Ro Committed by Stefan Behnel

+ setup.py instructions for Visual C++ compiler

Add setup.py openMP instructions for Microsoft Visual C++ compiler
parent 65dab373
...@@ -182,6 +182,24 @@ enable OpenMP. For gcc this can be done as follows in a setup.py:: ...@@ -182,6 +182,24 @@ enable OpenMP. For gcc this can be done as follows in a setup.py::
ext_modules = [ext_module], ext_modules = [ext_module],
) )
For Microsoft Visual C++ compiler::
from distutils.core import setup
from distutils.extension import Extension
from Cython.Distutils import build_ext
ext_module = Extension(
"hello",
["hello.pyx"],
extra_compile_args=['/openmp'],
)
setup(
name = 'Hello world app',
cmdclass = {'build_ext': build_ext},
ext_modules = [ext_module],
)
Breaking out of loops Breaking out of loops
===================== =====================
The parallel with and prange blocks support the statements break, continue and The parallel with and prange blocks support the statements break, continue and
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment