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
60c6738a
Commit
60c6738a
authored
Aug 27, 2018
by
Paul
Browse files
Formatting
parent
a7b934bf
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
15 deletions
+18
-15
src/targets/gpu/device/include/migraph/gpu/device/nary.hpp
src/targets/gpu/device/include/migraph/gpu/device/nary.hpp
+18
-15
No files found.
src/targets/gpu/device/include/migraph/gpu/device/nary.hpp
View file @
60c6738a
...
@@ -117,11 +117,14 @@ auto nary_standard(argument result, Arguments... args)
...
@@ -117,11 +117,14 @@ auto nary_standard(argument result, Arguments... args)
auto
*
outp
=
as_vec4
(
output
.
data
());
auto
*
outp
=
as_vec4
(
output
.
data
());
gs_launch
(
output_shape
.
elements
()
/
vec_size
)([
=
](
auto
i
)
{
gs_launch
(
output_shape
.
elements
()
/
vec_size
)([
=
](
auto
i
)
{
vec4
<
type
>
out
=
outp
[
i
];
vec4
<
type
>
out
=
outp
[
i
];
data
([
&
](
auto
...
xs
)
{
data
(
for
(
std
::
size_t
j
=
0
;
j
<
vec_size
;
j
++
)
{
[
&
](
auto
...
xs
)
{
for
(
std
::
size_t
j
=
0
;
j
<
vec_size
;
j
++
)
{
out
[
j
]
=
f
(
xs
[
j
]...);
out
[
j
]
=
f
(
xs
[
j
]...);
}
}
},
i
);
},
i
);
outp
[
i
]
=
out
;
outp
[
i
]
=
out
;
});
});
#endif
#endif
...
...
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