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
gaoqiong
composable_kernel
Commits
237371ad
Commit
237371ad
authored
Jul 27, 2022
by
Anthony Chang
Browse files
prevent integer overflow
parent
047cee2b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
example/01_gemm/gemm_gemm_xdl_fp16.cpp
example/01_gemm/gemm_gemm_xdl_fp16.cpp
+1
-1
No files found.
example/01_gemm/gemm_gemm_xdl_fp16.cpp
View file @
237371ad
...
@@ -268,7 +268,7 @@ int main(int argc, char* argv[])
...
@@ -268,7 +268,7 @@ int main(int argc, char* argv[])
float
ave_time
=
invoker
.
Run
(
argument
,
StreamConfig
{
nullptr
,
time_kernel
});
float
ave_time
=
invoker
.
Run
(
argument
,
StreamConfig
{
nullptr
,
time_kernel
});
std
::
size_t
flop
=
std
::
size_t
(
2
)
*
(
M
*
N
*
K
+
M
*
N
*
O
)
;
std
::
size_t
flop
=
(
size_t
)
M
*
N
*
K
*
2
+
(
size_t
)
M
*
N
*
O
*
2
;
std
::
size_t
num_btype
=
sizeof
(
ADataType
)
*
M
*
K
+
sizeof
(
B0DataType
)
*
K
*
N
+
std
::
size_t
num_btype
=
sizeof
(
ADataType
)
*
M
*
K
+
sizeof
(
B0DataType
)
*
K
*
N
+
sizeof
(
B1DataType
)
*
N
*
O
+
sizeof
(
CDataType
)
*
M
*
O
;
sizeof
(
B1DataType
)
*
N
*
O
+
sizeof
(
CDataType
)
*
M
*
O
;
...
...
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