sin.cpp 471 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 {
Paul's avatar
Paul committed
6
inline namespace MIGRAPHX_INLINE_NS {
7
8
9
10
11
namespace gpu {
namespace device {

void sin(hipStream_t stream, const argument& result, const argument& arg)
{
12
    nary(stream, result, arg)([](auto x) { return ::sin(to_hip_type(x)); });
13
14
15
16
}

} // namespace device
} // namespace gpu
Paul's avatar
Paul committed
17
} // namespace MIGRAPHX_INLINE_NS
Shucai Xiao's avatar
Shucai Xiao committed
18
} // namespace migraphx