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
55d461a0
Commit
55d461a0
authored
Sep 28, 2020
by
Chao Liu
Browse files
refactoring Array
parent
c9511733
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
composable_kernel/include/tensor_description/multi_index.hpp
composable_kernel/include/tensor_description/multi_index.hpp
+1
-1
No files found.
composable_kernel/include/tensor_description/multi_index.hpp
View file @
55d461a0
...
...
@@ -15,7 +15,7 @@ __host__ __device__ constexpr auto make_multi_index(const Xs&... xs)
{
return
make_array
<
const
index_t
>
(
std
::
forward
<
const
Xs
>
(
xs
)...);
}
#else
#else
// doesn't work: don't know how to get the lvalue/rvalue reference correct
template
<
typename
...
Xs
>
__host__
__device__
constexpr
auto
make_multi_index
(
Xs
&&
...
xs
)
{
...
...
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