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
MIGraphX
Commits
5794fe3c
Commit
5794fe3c
authored
Sep 09, 2022
by
Paul
Browse files
Format
parent
53870e3b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
src/targets/gpu/kernels/include/migraphx/kernels/index.hpp
src/targets/gpu/kernels/include/migraphx/kernels/index.hpp
+2
-1
No files found.
src/targets/gpu/kernels/include/migraphx/kernels/index.hpp
View file @
5794fe3c
...
@@ -98,7 +98,8 @@ struct index
...
@@ -98,7 +98,8 @@ struct index
__device__
index_int
nlocal
()
const
__device__
index_int
nlocal
()
const
{
{
#ifdef MIGRAPHX_NGROUP
#ifdef MIGRAPHX_NGROUP
static_assert
((
MIGRAPHX_NGLOBAL
%
MIGRAPHX_NLOCAL
!=
0
)
and
(
MIGRAPHX_NGROUP
>
1
),
"Local should be const"
);
static_assert
((
MIGRAPHX_NGLOBAL
%
MIGRAPHX_NLOCAL
!=
0
)
and
(
MIGRAPHX_NGROUP
>
1
),
"Local should be const"
);
#endif
#endif
MIGRAPHX_ASSERT
(
compute_local_size
()
>
0
);
MIGRAPHX_ASSERT
(
compute_local_size
()
>
0
);
return
compute_local_size
();
// NOLINT
return
compute_local_size
();
// NOLINT
...
...
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