Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
veros_veit
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Veit Lüschow
veros_veit
Commits
0b9c3814
Commit
0b9c3814
authored
Feb 18, 2020
by
Dion Häfner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
more disconnects
parent
2883a7fd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
test/distributed_test.py
test/distributed_test.py
+6
-0
veros/tools/cli.py
veros/tools/cli.py
+1
-0
No files found.
test/distributed_test.py
View file @
0b9c3814
...
...
@@ -56,6 +56,8 @@ def test_gather(backend):
[1., 1., 1., 1., 3., 3., 3., 3.],
[1., 1., 1., 1., 3., 3., 3., 3.]]
))
comm.Disconnect()
else:
rs.num_proc = (2, 2)
...
...
@@ -128,6 +130,8 @@ def test_scatter(backend):
for proc, idx in enumerate(proc_slices):
comm.Recv(res, proc)
assert np.array_equal(res, global_arr[idx])
comm.Disconnect()
else:
rs.num_proc = (2, 2)
...
...
@@ -203,6 +207,8 @@ def test_acc(backend):
)
np.testing.assert_allclose(sim.state.psi / scale, other_psi / scale, rtol=0, atol=1e-5)
comm.Disconnect()
else:
rs.num_proc = (2, 2)
...
...
veros/tools/cli.py
View file @
0b9c3814
...
...
@@ -106,6 +106,7 @@ def cli(run):
time
.
sleep
(
0.1
)
comm
.
Disconnect
()
return
kwargs
[
'override'
]
=
dict
(
kwargs
[
'override'
])
...
...
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