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
7ba32e0d
Commit
7ba32e0d
authored
Feb 27, 2013
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove no-gil cdivision error test.
parent
9dabf9a6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
17 deletions
+0
-17
tests/errors/e_cython_parallel_nogil_env.pyx
tests/errors/e_cython_parallel_nogil_env.pyx
+0
-17
No files found.
tests/errors/e_cython_parallel_nogil_env.pyx
deleted
100644 → 0
View file @
9dabf9a6
# mode: error
from
cython.parallel
import
*
def
psum
(
int
n
):
cdef
double
sum
cdef
int
i
cdef
double
x
,
step
,
t1
,
t2
sum
=
0
step
=
1.0
/
n
for
i
in
prange
(
n
,
nogil
=
True
):
x
=
(
i
)
*
step
sum
+=
4.0
/
(
1.0
+
x
*
x
)
return
sum
*
step
_ERRORS
=
u"""
e_cython_parallel_nogil_env.pyx:12:15: Pythonic division not allowed without gil, consider using cython.cdivision(True)
"""
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