"...composable_kernel.git" did not exist on "5aa3c3440910caa6b16a65cf2c8e22d233b35717"
Commit 554fce85 authored by Shucai Xiao's avatar Shucai Xiao
Browse files

Add the sin operator on GPU.

parent 27e52102
#include <migraphx/gpu/device/sin.hpp> #include <migraphx/gpu/device/sin.hpp>
#include <migraphx/gpu/device/nary.hpp> #include <migraphx/gpu/device/nary.hpp>
#include <migraphx/gpu/device/types.hpp>
namespace migraphx { namespace migraphx {
inline namespace MIGRAPH_INLINE_NS { inline namespace MIGRAPH_INLINE_NS {
...@@ -8,7 +9,7 @@ namespace device { ...@@ -8,7 +9,7 @@ namespace device {
void sin(hipStream_t stream, const argument& result, const argument& arg) void sin(hipStream_t stream, const argument& result, const argument& arg)
{ {
nary(stream, result, arg)([](auto x) { return sinf(x); }); nary(stream, result, arg)([](auto x) { return ::sin(x); });
} }
} // namespace device } // namespace device
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment