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
8ce4120e
"test/vscode:/vscode.git/clone" did not exist on "213930d83e37afcb9d6aaa8ff4fec2eac15483d1"
Commit
8ce4120e
authored
May 25, 2023
by
Alan Turner
Browse files
Fix tuning_value bug
parent
9b0fc65a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
src/targets/gpu/jit/ck_gemm.cpp
src/targets/gpu/jit/ck_gemm.cpp
+3
-2
No files found.
src/targets/gpu/jit/ck_gemm.cpp
View file @
8ce4120e
...
@@ -230,7 +230,7 @@ struct ck_gemm_compiler : compiler<ck_gemm_compiler>
...
@@ -230,7 +230,7 @@ struct ck_gemm_compiler : compiler<ck_gemm_compiler>
auto
a_shape
=
inputs
[
0
];
auto
a_shape
=
inputs
[
0
];
auto
b_shape
=
inputs
[
1
];
auto
b_shape
=
inputs
[
1
];
auto
c_shape
=
inputs
.
back
();
auto
c_shape
=
inputs
.
back
();
auto
tuning_value
=
get_tuning_for
({
a_shape
,
b_shape
,
c_shape
});
auto
tuning_value
=
v
.
get
(
"tuning_val"
,
get_tuning_for
({
a_shape
,
b_shape
,
c_shape
})
)
;
auto
rank
=
a_shape
.
lens
().
size
();
auto
rank
=
a_shape
.
lens
().
size
();
auto
b_strides
=
b_shape
.
strides
();
auto
b_strides
=
b_shape
.
strides
();
...
@@ -321,7 +321,8 @@ struct ck_gemm_compiler : compiler<ck_gemm_compiler>
...
@@ -321,7 +321,8 @@ struct ck_gemm_compiler : compiler<ck_gemm_compiler>
{
"blocks_per_batch"
,
to_string
(
blocks_per_batch
)},
{
"blocks_per_batch"
,
to_string
(
blocks_per_batch
)},
{
"preamble"
,
v
.
get
(
"preamble"
,
std
::
string
{})},
{
"preamble"
,
v
.
get
(
"preamble"
,
std
::
string
{})},
{
"kernel"
,
options
.
kernel_name
}});
{
"kernel"
,
options
.
kernel_name
}});
std
::
cout
<<
"instances: "
<<
solutions
.
size
()
<<
", val: "
<<
tuning_value
<<
std
::
endl
;
std
::
cout
<<
template_str
<<
std
::
endl
;
return
compile_hip_code_object
(
src
,
options
);
return
compile_hip_code_object
(
src
,
options
);
}
}
...
...
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