"vscode:/vscode.git/clone" did not exist on "c3861fb1e886d02fb2ff473f62282fb3e49ba1ce"
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