Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
gaoqiong
MIGraphX
Commits
554fce85
Commit
554fce85
authored
Nov 16, 2018
by
Shucai Xiao
Browse files
Add the sin operator on GPU.
parent
27e52102
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
src/targets/gpu/device/sin.cpp
src/targets/gpu/device/sin.cpp
+2
-1
No files found.
src/targets/gpu/device/sin.cpp
View file @
554fce85
#include <migraphx/gpu/device/sin.hpp>
#include <migraphx/gpu/device/nary.hpp>
#include <migraphx/gpu/device/types.hpp>
namespace
migraphx
{
inline
namespace
MIGRAPH_INLINE_NS
{
...
...
@@ -8,7 +9,7 @@ namespace device {
void
sin
(
hipStream_t
stream
,
const
argument
&
result
,
const
argument
&
arg
)
{
nary
(
stream
,
result
,
arg
)([](
auto
x
)
{
return
sin
f
(
x
);
});
nary
(
stream
,
result
,
arg
)([](
auto
x
)
{
return
::
sin
(
x
);
});
}
}
// namespace device
...
...
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