"src/vscode:/vscode.git/clone" did not exist on "85d1a6b3f6072868960d836de42a2b6effc64631"
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); ...@@ -37,21 +37,21 @@ extern "C" __device__ __attribute__((const)) size_t __ockl_get_group_id(uint);
struct index struct index
{ {
struct global_read struct global_read
{ {
__device__ operator index_int() const __device__ operator index_int() const
{ {
return index_int{blockIdx.x} * index_int{blockDim.x} + index_int{threadIdx.x}; // NOLINT 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 __device__ operator index_int() const
{ {
return threadIdx.x; // NOLINT return threadIdx.x; // NOLINT
} }
}; };
struct group_read struct group_read
{ {
__device__ operator index_int() const __device__ operator index_int() const
{ {
...@@ -123,10 +123,7 @@ struct index ...@@ -123,10 +123,7 @@ struct index
} }
}; };
inline __device__ __attribute__((const)) index make_index() inline __device__ __attribute__((const)) index make_index() { return index{}; }
{
return index{};
}
} // namespace migraphx } // namespace migraphx
#endif // MIGRAPHX_GUARD_KERNELS_INDEX_HPP #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