Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dgl
Commits
06e22f1e
Unverified
Commit
06e22f1e
authored
Apr 16, 2019
by
Da Zheng
Committed by
GitHub
Apr 16, 2019
Browse files
[Test] Disable unittest for shared memory temporarily (#497)
* disable tests. * import unittest.
parent
b89dcce1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
tests/mxnet/test_shared_mem_store.py
tests/mxnet/test_shared_mem_store.py
+2
-0
No files found.
tests/mxnet/test_shared_mem_store.py
View file @
06e22f1e
...
@@ -5,6 +5,7 @@ from multiprocessing import Process
...
@@ -5,6 +5,7 @@ from multiprocessing import Process
from
scipy
import
sparse
as
spsp
from
scipy
import
sparse
as
spsp
import
mxnet
as
mx
import
mxnet
as
mx
import
backend
as
F
import
backend
as
F
import
unittest
num_nodes
=
100
num_nodes
=
100
num_edges
=
int
(
num_nodes
*
num_nodes
*
0.1
)
num_edges
=
int
(
num_nodes
*
num_nodes
*
0.1
)
...
@@ -48,6 +49,7 @@ def server_func(num_workers):
...
@@ -48,6 +49,7 @@ def server_func(num_workers):
g
.
edata
[
'feat'
]
=
mx
.
nd
.
arange
(
num_edges
*
10
).
reshape
((
num_edges
,
10
))
g
.
edata
[
'feat'
]
=
mx
.
nd
.
arange
(
num_edges
*
10
).
reshape
((
num_edges
,
10
))
g
.
run
()
g
.
run
()
@
unittest
.
skip
(
"disable shared memory test temporarily"
)
def
test_worker_server
():
def
test_worker_server
():
serv_p
=
Process
(
target
=
server_func
,
args
=
(
2
,))
serv_p
=
Process
(
target
=
server_func
,
args
=
(
2
,))
work_p1
=
Process
(
target
=
worker_func
,
args
=
(
0
,))
work_p1
=
Process
(
target
=
worker_func
,
args
=
(
0
,))
...
...
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