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
3ab2821d
Commit
3ab2821d
authored
May 09, 2023
by
Po-Yen, Chen
Browse files
Make new 'Embed' ctor only available for device code
parent
18495464
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
include/ck/tensor_description/multi_index_transform.hpp
include/ck/tensor_description/multi_index_transform.hpp
+6
-1
No files found.
include/ck/tensor_description/multi_index_transform.hpp
View file @
3ab2821d
...
@@ -393,8 +393,13 @@ struct Embed
...
@@ -393,8 +393,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