Unverified Commit 39260242 authored by Chao Ma's avatar Chao Ma Committed by GitHub
Browse files

[Distributed Example] Check args.num_servers with DGL_NUM_SERVER (#2203)

* update

* update

* update
parent b25bbe64
......@@ -316,7 +316,9 @@ if __name__ == '__main__':
parser.add_argument('--close_profiler', action='store_true', help='Close pyinstrument profiler')
args = parser.parse_args()
assert args.num_workers == int(os.environ.get('DGL_NUM_SAMPLER')), \
'The num_workers should be the same value with num_samplers.'
'The num_workers should be the same value with DGL_NUM_SAMPLER.'
assert args.num_servers == int(os.environ.get('DGL_NUM_SERVER')), \
'The num_servers should be the same value with DGL_NUM_SERVER.'
print(args)
main(args)
......@@ -486,7 +486,9 @@ if __name__ == '__main__':
help="whether to remove edges during sampling")
args = parser.parse_args()
assert args.num_workers == int(os.environ.get('DGL_NUM_SAMPLER')), \
'The num_workers should be the same value with num_samplers.'
'The num_workers should be the same value with DGL_NUM_SAMPLER.'
assert args.num_servers == int(os.environ.get('DGL_NUM_SERVER')), \
'The num_servers should be the same value with DGL_NUM_SERVER.'
print(args)
main(args)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment