-
Notifications
You must be signed in to change notification settings - Fork 264
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move parallel support imports to .pxi so shims get correct type
We also need to explicitly cast the comm/info arguments to the correct type
- Loading branch information
Showing
3 changed files
with
8 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
# Stubs for when parallel support is not enabled | ||
|
||
ctypedef int MPI_Comm | ||
ctypedef int MPI_Info | ||
ctypedef int Comm | ||
ctypedef int Info | ||
cdef Comm MPI_COMM_WORLD | ||
cdef Info MPI_INFO_NULL | ||
cdef MPI_Comm MPI_COMM_WORLD | ||
cdef MPI_Info MPI_INFO_NULL | ||
MPI_COMM_WORLD = 0 | ||
MPI_INFO_NULL = 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters