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
21755b5d
Commit
21755b5d
authored
May 26, 2021
by
Jing Zhang
Browse files
abroadcast only
parent
de9f5bed
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
composable_kernel/include/tensor_operation/xdlops_gemm.hpp
composable_kernel/include/tensor_operation/xdlops_gemm.hpp
+7
-3
No files found.
composable_kernel/include/tensor_operation/xdlops_gemm.hpp
View file @
21755b5d
...
@@ -538,7 +538,11 @@ struct xdlops_info
...
@@ -538,7 +538,11 @@ struct xdlops_info
static
constexpr
index_t
MRepeats
=
MRepeats_
;
static
constexpr
index_t
MRepeats
=
MRepeats_
;
static
constexpr
index_t
NRepeats
=
NRepeats_
;
static
constexpr
index_t
NRepeats
=
NRepeats_
;
// static constexpr bool IsABroadcast() { return NPerXdlops >= MPerXdlops; }
static
constexpr
bool
IsABroadcast
()
{
static_assert
(
NPerXdlops
>=
MPerXdlops
,
"only support ABroadcast"
);
return
true
;
}
static
constexpr
bool
IsKReduction
()
static
constexpr
bool
IsKReduction
()
{
{
...
@@ -832,7 +836,7 @@ struct XdlopsGemm
...
@@ -832,7 +836,7 @@ struct XdlopsGemm
static
constexpr
index_t
NPerXdlops
=
GetXdlopsInfo
().
NPerXdlops
;
static
constexpr
index_t
NPerXdlops
=
GetXdlopsInfo
().
NPerXdlops
;
static
constexpr
bool
IsKReduction
=
GetXdlopsInfo
().
IsKReduction
();
static
constexpr
bool
IsKReduction
=
GetXdlopsInfo
().
IsKReduction
();
//
static constexpr bool IsABroadcast = GetXdlopsInfo().IsABroadcast();
static
constexpr
bool
IsABroadcast
=
GetXdlopsInfo
().
IsABroadcast
();
static
constexpr
index_t
KPerXdlops
=
GetXdlopsInfo
().
GetKPerXdlops
();
static
constexpr
index_t
KPerXdlops
=
GetXdlopsInfo
().
GetKPerXdlops
();
static
constexpr
auto
GetBlkId
(
const
index_t
lane_id
)
static
constexpr
auto
GetBlkId
(
const
index_t
lane_id
)
...
...
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