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
6ed20101
Commit
6ed20101
authored
Feb 03, 2023
by
Paul
Browse files
Format
parent
b50d336a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
src/targets/gpu/kernels/include/migraphx/kernels/layernorm.hpp
...argets/gpu/kernels/include/migraphx/kernels/layernorm.hpp
+1
-1
src/targets/gpu/kernels/include/migraphx/kernels/reduce.hpp
src/targets/gpu/kernels/include/migraphx/kernels/reduce.hpp
+3
-3
No files found.
src/targets/gpu/kernels/include/migraphx/kernels/layernorm.hpp
View file @
6ed20101
src/targets/gpu/kernels/include/migraphx/kernels/reduce.hpp
View file @
6ed20101
...
@@ -540,16 +540,16 @@ struct lane
...
@@ -540,16 +540,16 @@ struct lane
};
};
// TODO: Remove these in the future when they can be selected in the compiler class
// TODO: Remove these in the future when they can be selected in the compiler class
template
<
index_int
RElements
>
template
<
index_int
RElements
>
constexpr
auto
pick_block
()
constexpr
auto
pick_block
()
{
{
using
nlocal
=
decltype
(
index
{}.
max_nlocal
());
using
nlocal
=
decltype
(
index
{}.
max_nlocal
());
if
constexpr
(
RElements
<
nlocal
{}
*
256
)
if
constexpr
(
RElements
<
nlocal
{}
*
256
)
return
block
{};
return
block
{};
else
else
return
block_large
{};
return
block_large
{};
}
}
template
<
index_int
RElements
>
template
<
index_int
RElements
>
using
auto_block
=
decltype
(
pick_block
<
RElements
>
());
using
auto_block
=
decltype
(
pick_block
<
RElements
>
());
template
<
class
Input
,
index_int
Axis
>
template
<
class
Input
,
index_int
Axis
>
...
...
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