contiguous.cpp 436 Bytes
Newer Older
1

Paul's avatar
Paul committed
2
3
#include <migraphx/gpu/device/contiguous.hpp>
#include <migraphx/gpu/device/nary.hpp>
4

Paul's avatar
Paul committed
5
namespace migraphx {
Paul's avatar
Paul committed
6
inline namespace MIGRAPHX_INLINE_NS {
Paul's avatar
Paul committed
7
namespace gpu {
8
namespace device {
9

10
void contiguous(hipStream_t stream, const argument& result, const argument& arg)
11
{
12
    nary(stream, result, arg)([](auto x) __device__ { return x; });
13
14
}

15
} // namespace device
Paul's avatar
Paul committed
16
} // namespace gpu
Paul's avatar
Paul committed
17
} // namespace MIGRAPHX_INLINE_NS
Paul's avatar
Paul committed
18
} // namespace migraphx