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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ift
resolve
Commits
b2712453
Commit
b2712453
authored
Oct 28, 2021
by
Philipp Arras
Browse files
Options
Downloads
Patches
Plain Diff
Adopt to new nifty version
parent
846e8899
No related branches found
No related tags found
1 merge request
!32
Adopt to new nifty version
Pipeline
#113815
passed
Oct 28, 2021
Stage: build_docker
Stage: testing
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
test/test_mpi/test_add.py
+2
-1
2 additions, 1 deletion
test/test_mpi/test_add.py
with
2 additions
and
1 deletion
test/test_mpi/test_add.py
+
2
−
1
View file @
b2712453
...
@@ -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
)
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
sign in
to comment