Commit 0fbbd8db authored by Paul's avatar Paul
Browse files

Format

parent 155bb1fd
......@@ -37,21 +37,21 @@ extern "C" __device__ __attribute__((const)) size_t __ockl_get_group_id(uint);
struct index
{
struct global_read
struct global_read
{
__device__ operator index_int() const
{
return index_int{blockIdx.x} * index_int{blockDim.x} + index_int{threadIdx.x}; // NOLINT
}
};
struct local_read
struct local_read
{
__device__ operator index_int() const
{
return threadIdx.x; // NOLINT
}
};
struct group_read
struct group_read
{
__device__ operator index_int() const
{
......@@ -123,10 +123,7 @@ struct index
}
};
inline __device__ __attribute__((const)) index make_index()
{
return index{};
}
inline __device__ __attribute__((const)) index make_index() { return index{}; }
} // namespace migraphx
#endif // MIGRAPHX_GUARD_KERNELS_INDEX_HPP
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