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
84c5bec1
Commit
84c5bec1
authored
Jun 07, 2023
by
Alan Turner
Browse files
Reduce scalars per vector for non-int8 return type
parent
7020930a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
library/src/jit_library/src/device_gemm_multiple_d.cpp
library/src/jit_library/src/device_gemm_multiple_d.cpp
+2
-2
No files found.
library/src/jit_library/src/device_gemm_multiple_d.cpp
View file @
84c5bec1
...
@@ -101,12 +101,12 @@ Solution Problem::MakeSolution(std::size_t idx, const std::string& arch) const
...
@@ -101,12 +101,12 @@ Solution Problem::MakeSolution(std::size_t idx, const std::string& arch) const
if
(
ADataType
==
DataType
::
Int8
and
BDataType
==
DataType
::
Int8
)
if
(
ADataType
==
DataType
::
Int8
and
BDataType
==
DataType
::
Int8
)
{
{
// Change CBlockTransfer ScalarPerVector if Ds contains other types
// Change CBlockTransfer ScalarPerVector if Ds contains other types
if
(
std
::
any_of
(
if
(
EDataType
==
DataType
::
Half
or
std
::
any_of
(
DsDataType
.
begin
(),
DsDataType
.
end
(),
[](
auto
t
)
{
return
t
==
DataType
::
Half
;
}))
DsDataType
.
begin
(),
DsDataType
.
end
(),
[](
auto
t
)
{
return
t
==
DataType
::
Half
;
}))
{
{
params
[
params
.
size
()
-
3
]
=
"8"
;
params
[
params
.
size
()
-
3
]
=
"8"
;
}
}
if
(
std
::
any_of
(
if
(
EDataType
==
DataType
::
Float
or
std
::
any_of
(
DsDataType
.
begin
(),
DsDataType
.
end
(),
[](
auto
t
)
{
return
t
==
DataType
::
Float
;
}))
DsDataType
.
begin
(),
DsDataType
.
end
(),
[](
auto
t
)
{
return
t
==
DataType
::
Float
;
}))
{
{
params
[
params
.
size
()
-
3
]
=
"4"
;
params
[
params
.
size
()
-
3
]
=
"4"
;
...
...
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