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
MIGraphX
Commits
c1a76b61
"...targets/git@developer.sourcefind.cn:gaoqiong/migraphx.git" did not exist on "ef738568002fe31f313d10a8be2890eec7687438"
Commit
c1a76b61
authored
Nov 16, 2023
by
Paul
Browse files
Use batch in calculation
parent
8b7ad986
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
src/targets/gpu/fuse_mlir.cpp
src/targets/gpu/fuse_mlir.cpp
+3
-2
No files found.
src/targets/gpu/fuse_mlir.cpp
View file @
c1a76b61
...
@@ -169,11 +169,12 @@ auto is_mlir_dot(mlir_mode mode)
...
@@ -169,11 +169,12 @@ auto is_mlir_dot(mlir_mode mode)
float
m
=
a
.
lens
()[
a
.
lens
().
size
()
-
2
];
float
m
=
a
.
lens
()[
a
.
lens
().
size
()
-
2
];
float
n
=
b
.
lens
().
back
();
float
n
=
b
.
lens
().
back
();
float
k
=
a
.
lens
().
back
();
float
k
=
a
.
lens
().
back
();
float
g
=
a
.
elements
()
/
(
m
*
k
);
if
(
k
>
1024
)
if
(
k
>
1024
)
return
false
;
return
false
;
auto
ratio
=
m
*
n
/
k
;
auto
ratio
=
std
::
sqrt
(
g
)
*
m
*
n
/
k
;
std
::
cout
<<
"gemm_ratio: "
<<
ratio
<<
std
::
endl
;
std
::
cout
<<
"gemm_ratio: "
<<
ratio
<<
std
::
endl
;
if
(
ratio
<
1
638
4
)
if
(
ratio
<
1
28
*
102
4
)
return
false
;
return
false
;
return
true
;
return
true
;
// // Skipping GEMMs with a K dimension greater than 2048 is a course-grained strategy
// // Skipping GEMMs with a K dimension greater than 2048 is a course-grained strategy
...
...
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