Commit 6deee23b authored by Paul's avatar Paul
Browse files

Add const attribute to improve optimizations

parent 551c2e45
......@@ -98,7 +98,7 @@ struct index
}
};
inline __device__ index make_index()
inline __device__ __attribute__((const)) index make_index()
{
return index{blockIdx.x * blockDim.x + threadIdx.x, threadIdx.x, blockIdx.x}; // NOLINT
}
......
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