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/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 sinf(x); });
nary(stream, result, arg)([](auto x) { return ::sin(x); });
}
} // 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