sin.cpp 456 Bytes
Newer Older
1
2
#include <migraphx/gpu/device/sin.hpp>
#include <migraphx/gpu/device/nary.hpp>
Shucai Xiao's avatar
Shucai Xiao committed
3
#include <migraphx/gpu/device/types.hpp>
4

5
namespace migraphx {
6
7
8
9
10
11
inline namespace MIGRAPH_INLINE_NS {
namespace gpu {
namespace device {

void sin(hipStream_t stream, const argument& result, const argument& arg)
{
Shucai Xiao's avatar
Shucai Xiao committed
12
    nary(stream, result, arg)([](auto x) { return ::sin(x); });
13
14
15
16
17
}

} // namespace device
} // namespace gpu
} // namespace MIGRAPH_INLINE_NS
Shucai Xiao's avatar
Shucai Xiao committed
18
} // namespace migraphx