Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
84ae8c4e
Commit
84ae8c4e
authored
May 16, 2016
by
scoder
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #517 from joonro/patch-6
+ setup.py instructions for Visual C++ compiler
parents
9f82e3e3
81a89643
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
docs/src/userguide/parallelism.rst
docs/src/userguide/parallelism.rst
+18
-0
No files found.
docs/src/userguide/parallelism.rst
View file @
84ae8c4e
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment