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
0e5d8ed5
Commit
0e5d8ed5
authored
May 31, 2023
by
Paul
Browse files
Fix cppcheck issues
parent
f4ee2be5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
src/targets/gpu/jit/ck_gemm.cpp
src/targets/gpu/jit/ck_gemm.cpp
+2
-1
No files found.
src/targets/gpu/jit/ck_gemm.cpp
View file @
0e5d8ed5
...
@@ -270,6 +270,7 @@ struct ck_gemm_compiler : compiler<ck_gemm_compiler>
...
@@ -270,6 +270,7 @@ struct ck_gemm_compiler : compiler<ck_gemm_compiler>
{
{
const
auto
&
a_shape
=
inputs
[
0
];
const
auto
&
a_shape
=
inputs
[
0
];
const
auto
&
b_shape
=
inputs
[
1
];
const
auto
&
b_shape
=
inputs
[
1
];
// cppcheck-suppress unreadVariable
auto
rank
=
a_shape
.
lens
().
size
();
auto
rank
=
a_shape
.
lens
().
size
();
auto
b_strides
=
b_shape
.
strides
();
auto
b_strides
=
b_shape
.
strides
();
return
rank
>=
3
and
b_strides
[
rank
-
3
]
==
0
;
return
rank
>=
3
and
b_strides
[
rank
-
3
]
==
0
;
...
@@ -425,7 +426,7 @@ struct ck_gemm_compiler : compiler<ck_gemm_compiler>
...
@@ -425,7 +426,7 @@ struct ck_gemm_compiler : compiler<ck_gemm_compiler>
tc
.
solutions
.
resize
(
solutions
.
size
());
tc
.
solutions
.
resize
(
solutions
.
size
());
std
::
iota
(
tc
.
solutions
.
begin
(),
tc
.
solutions
.
end
(),
0
);
std
::
iota
(
tc
.
solutions
.
begin
(),
tc
.
solutions
.
end
(),
0
);
std
::
vector
<
shape
>
gemm_shapes
{
shapes
[
0
],
shapes
[
1
],
shapes
.
back
()};
std
::
vector
<
shape
>
gemm_shapes
{
shapes
[
0
],
shapes
[
1
],
shapes
.
back
()};
tc
.
problem
=
to_value
(
shapes
);
tc
.
problem
=
to_value
(
gemm_
shapes
);
return
tc
;
return
tc
;
}
}
};
};
...
...
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