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
7b30d1c9
Commit
7b30d1c9
authored
May 10, 2023
by
Po-Yen, Chen
Browse files
Merge branch 'feature/fix-descriptor-attr-not-copied' into feature/integrage-karg-simplification-pr
parents
6570ef7a
ce20fe06
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
include/ck/tensor_description/multi_index_transform.hpp
include/ck/tensor_description/multi_index_transform.hpp
+8
-1
No files found.
include/ck/tensor_description/multi_index_transform.hpp
View file @
7b30d1c9
...
@@ -383,6 +383,8 @@ template <typename UpLengths,
...
@@ -383,6 +383,8 @@ template <typename UpLengths,
typename
enable_if
<
UpLengths
::
Size
()
==
Coefficients
::
Size
(),
bool
>
::
type
=
false
>
typename
enable_if
<
UpLengths
::
Size
()
==
Coefficients
::
Size
(),
bool
>
::
type
=
false
>
struct
Embed
struct
Embed
{
{
static_assert
(
!
std
::
is_reference_v
<
UpLengths
>
&&
!
std
::
is_reference_v
<
Coefficients
>
);
static
constexpr
index_t
NDimUp
=
UpLengths
::
Size
();
static
constexpr
index_t
NDimUp
=
UpLengths
::
Size
();
using
LowerIndex
=
MultiIndex
<
1
>
;
using
LowerIndex
=
MultiIndex
<
1
>
;
...
@@ -393,8 +395,13 @@ struct Embed
...
@@ -393,8 +395,13 @@ struct Embed
__host__
__device__
constexpr
Embed
()
=
default
;
__host__
__device__
constexpr
Embed
()
=
default
;
__host__
constexpr
Embed
(
const
UpLengths
&
up_lengths
,
const
Coefficients
&
coefficients
)
:
up_lengths_
{
up_lengths
},
coefficients_
{
coefficients
}
{
}
/// NOTE: force copying here to prevent uninitialized data members (on device side)
/// NOTE: force copying here to prevent uninitialized data members (on device side)
__host__
__device__
constexpr
Embed
(
UpLengths
up_lengths
,
Coefficients
coefficients
)
__device__
constexpr
Embed
(
UpLengths
up_lengths
,
Coefficients
coefficients
)
:
up_lengths_
{
std
::
move
(
up_lengths
)},
coefficients_
{
std
::
move
(
coefficients
)}
:
up_lengths_
{
std
::
move
(
up_lengths
)},
coefficients_
{
std
::
move
(
coefficients
)}
{
{
}
}
...
...
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