forked from apache/mxnet
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
42 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
diff a/example/pytorch/benchmark_byteps.py b/example/pytorch/benchmark_byteps.py (rejected hunks) | ||
@@ -127,6 +127,3 @@ img_sec_conf = 1.96 * np.std(img_secs) | ||
log('Img/sec per %s: %.1f +-%.1f' % (device, img_sec_mean, img_sec_conf)) | ||
log('Total img/sec on %d %s(s): %.1f +-%.1f' % | ||
(bps.size(), device, bps.size() * img_sec_mean, bps.size() * img_sec_conf)) | ||
- | ||
-# to let arnold shutdown all tasks | ||
-raise Exception |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
diff a/example/pytorch/microbenchmark-byteps.py b/example/pytorch/microbenchmark-byteps.py (rejected hunks) | ||
@@ -44,10 +44,8 @@ def log(s, nl=True): | ||
def benchmark(tensor, average, name): | ||
if not args.no_wait and bps.rank() == 0: | ||
- # let other workers submit allreduce request first | ||
time.sleep(0.01) | ||
start = time.time() | ||
- # do not use allreduce_() as it polls every 1ms | ||
handle = push_pull_async_inplace(tensor, average, name) | ||
while True: | ||
if poll(handle): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters