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
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Gwenaël Samain
cython
Commits
7cc79d38
Commit
7cc79d38
authored
Aug 23, 2011
by
Mark Florisson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cython.parallel: use integer ranks to find the rank type name
parent
8b1a4177
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
Cython/Compiler/PyrexTypes.py
Cython/Compiler/PyrexTypes.py
+1
-1
tests/compile/parallel_compile_float_rank.pyx
tests/compile/parallel_compile_float_rank.pyx
+8
-0
No files found.
Cython/Compiler/PyrexTypes.py
View file @
7cc79d38
...
...
@@ -926,7 +926,7 @@ class CIntType(CNumericType):
return
src_type
.
is_int
or
src_type
.
is_enum
or
src_type
is
error_type
def
invalid_value
(
self
):
if
rank_to_type_name
[
self
.
rank
]
==
'char'
:
if
rank_to_type_name
[
int
(
self
.
rank
)
]
==
'char'
:
return
"'?'"
else
:
# We do not really know the size of the type, so return
...
...
tests/compile/parallel_compile_float_rank.pyx
0 → 100644
View file @
7cc79d38
# mode: compile
from
cython.parallel
import
*
cdef
ssize_t
i
with
nogil
,
parallel
():
for
i
in
range
(
10
):
pass
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