Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
resolve
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
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
resolve
Merge requests
!32
Adopt to new nifty version
Code
Änderungen prüfen
Branch auschecken
Herunterladen
Patches
Unformatierter Diff
Merged
Adopt to new nifty version
nifty
into
master
Overview
0
Commits
1
Pipelines
1
Changes
1
Merged
Philipp Arras
requested to merge
nifty
into
master
3 years ago
Overview
0
Commits
1
Pipelines
1
Changes
1
Expand
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
b2712453
1 commit,
3 years ago
1 file
+
2
−
1
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
test/test_mpi/test_add.py
+
2
−
1
Options
@@ -5,6 +5,7 @@
@@ -5,6 +5,7 @@
from
functools
import
reduce
from
functools
import
reduce
from
operator
import
add
from
operator
import
add
from
types
import
GeneratorType
from
types
import
GeneratorType
from
mpi4py
import
MPI
import
numpy
as
np
import
numpy
as
np
@@ -128,5 +129,5 @@ def test_mpi_adder():
@@ -128,5 +129,5 @@ def test_mpi_adder():
mini_results
=
[]
mini_results
=
[]
for
ham
in
hams_for_sampling
:
for
ham
in
hams_for_sampling
:
with
ift
.
random
.
Context
(
42
):
with
ift
.
random
.
Context
(
42
):
mini_results
.
append
(
mini
(
ift
.
SampledKLEnergy
(
pos
,
ham
,
3
,
None
))[
0
].
position
)
mini_results
.
append
(
mini
(
ift
.
SampledKLEnergy
(
pos
,
ham
,
3
,
None
,
comm
=
MPI
.
COMM_SELF
))[
0
].
position
)
allclose
(
mini_results
)
allclose
(
mini_results
)
Loading