"ts/webui/src/vscode:/vscode.git/clone" did not exist on "9392125edad18464f1f267eb99bc4036c38f7ed0"
Commit 6deee23b authored by Paul's avatar Paul
Browse files

Add const attribute to improve optimizations

parent 551c2e45
...@@ -98,7 +98,7 @@ struct index ...@@ -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 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