atan.cpp 485 Bytes
Newer Older
1
2
3
4
5
#include <migraphx/gpu/device/atan.hpp>
#include <migraphx/gpu/device/nary.hpp>
#include <migraphx/gpu/device/types.hpp>

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

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

} // namespace device
} // namespace gpu
17
} // namespace MIGRAPHX_INLINE_NS
18
} // namespace migraphx