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
tsoc
superbenchmark
Commits
82e267b9
Unverified
Commit
82e267b9
authored
Apr 12, 2021
by
guoshzhao
Committed by
GitHub
Apr 12, 2021
Browse files
change the condition when execute self.__matmul_nosharding() (#49)
Co-authored-by:
Guoshuai Zhao
<
guzhao@microsoft.com
>
parent
1f726091
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
superbench/benchmarks/micro_benchmarks/sharding_matmul.py
superbench/benchmarks/micro_benchmarks/sharding_matmul.py
+1
-1
No files found.
superbench/benchmarks/micro_benchmarks/sharding_matmul.py
View file @
82e267b9
...
...
@@ -221,7 +221,7 @@ def _benchmark(self):
K
=
self
.
_args
.
k
N
=
self
.
_args
.
n
for
mode
in
self
.
_args
.
mode
:
if
mode
==
ShardingMode
.
NOSHARDING
or
self
.
__world_size
==
1
:
if
mode
==
ShardingMode
.
NOSHARDING
:
elapse_times
=
self
.
__matmul_nosharding
(
M
,
K
,
N
)
elif
mode
==
ShardingMode
.
ALLREDUCE
:
elapse_times
=
self
.
__matmul_allreduce
(
M
,
K
,
N
)
...
...
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