Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mpi_dummy
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ift
mpi_dummy
Commits
3dc3c35c
Commit
3dc3c35c
authored
7 years ago
by
Martin Reinecke
Browse files
Options
Downloads
Patches
Plain Diff
futurize changes for Pyton 3 compatibility
parent
b2b59354
No related branches found
No related tags found
1 merge request
!1
futurize changes for Pyton 3 compatibility
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
mpi_dummy/__init__.py
+4
-3
4 additions, 3 deletions
mpi_dummy/__init__.py
mpi_dummy/comm.py
+3
-1
3 additions, 1 deletion
mpi_dummy/comm.py
mpi_dummy/datatypes.py
+3
-1
3 additions, 1 deletion
mpi_dummy/datatypes.py
mpi_dummy/op.py
+2
-1
2 additions, 1 deletion
mpi_dummy/op.py
with
12 additions
and
6 deletions
mpi_dummy/__init__.py
+
4
−
3
View file @
3dc3c35c
...
@@ -16,8 +16,9 @@
...
@@ -16,8 +16,9 @@
# You should have received a copy of the GNU General Public License
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# along with this program. If not, see <http://www.gnu.org/licenses/>.
from
__future__
import
absolute_import
from
.version
import
__version__
from
.version
import
__version__
from
comm
import
*
from
.
comm
import
*
from
datatypes
import
*
from
.
datatypes
import
*
from
op
import
*
from
.
op
import
*
This diff is collapsed.
Click to expand it.
mpi_dummy/comm.py
+
3
−
1
View file @
3dc3c35c
# -*- coding: utf-8 -*-
# -*- coding: utf-8 -*-
from
__future__
import
absolute_import
from
builtins
import
object
import
inspect
import
inspect
import
copy
import
copy
import
numpy
as
np
import
numpy
as
np
from
op
import
SUM
from
.
op
import
SUM
__all__
=
[
'
Comm
'
,
'
Intracomm
'
,
'
COMM_WORLD
'
,
'
COMM_SELF
'
]
__all__
=
[
'
Comm
'
,
'
Intracomm
'
,
'
COMM_WORLD
'
,
'
COMM_SELF
'
]
...
...
This diff is collapsed.
Click to expand it.
mpi_dummy/datatypes.py
+
3
−
1
View file @
3dc3c35c
# -*- coding: utf-8 -*-
# -*- coding: utf-8 -*-
from
builtins
import
str
from
builtins
import
object
__all__
=
[
'
BYTE
'
,
'
SHORT
'
,
'
UNSIGNED_SHORT
'
,
'
UNSIGNED_INT
'
,
'
INT
'
,
'
LONG
'
,
__all__
=
[
'
BYTE
'
,
'
SHORT
'
,
'
UNSIGNED_SHORT
'
,
'
UNSIGNED_INT
'
,
'
INT
'
,
'
LONG
'
,
'
UNSIGNED_LONG
'
,
'
LONG_LONG
'
,
'
UNSIGNED_LONG_LONG
'
,
'
FLOAT
'
,
'
UNSIGNED_LONG
'
,
'
LONG_LONG
'
,
'
UNSIGNED_LONG_LONG
'
,
'
FLOAT
'
,
'
DOUBLE
'
,
'
LONG_DOUBLE
'
,
'
COMPLEX
'
,
'
DOUBLE_COMPLEX
'
]
'
DOUBLE
'
,
'
LONG_DOUBLE
'
,
'
COMPLEX
'
,
'
DOUBLE_COMPLEX
'
]
class
_datatype
():
class
_datatype
(
object
):
def
__init__
(
self
,
name
):
def
__init__
(
self
,
name
):
self
.
name
=
str
(
name
)
self
.
name
=
str
(
name
)
...
...
This diff is collapsed.
Click to expand it.
mpi_dummy/op.py
+
2
−
1
View file @
3dc3c35c
# -*- coding: utf-8 -*-
# -*- coding: utf-8 -*-
from
builtins
import
object
class
Op
(
object
):
class
Op
(
object
):
...
@@ -13,4 +14,4 @@ PROD = Op()
...
@@ -13,4 +14,4 @@ PROD = Op()
LAND
=
Op
()
LAND
=
Op
()
LOR
=
Op
()
LOR
=
Op
()
BAND
=
Op
()
BAND
=
Op
()
BOR
=
Op
()
BOR
=
Op
()
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment