File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
include/cuco/detail/utility Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ __device__ constexpr int32_t warp_size() noexcept { return 32; }
4848 *
4949 * @return The global thread index
5050 */
51- __device__ constexpr index_type global_thread_id () noexcept
51+ [[maybe_unused]] __device__ static index_type global_thread_id () noexcept
5252{
5353 return index_type{threadIdx .x } + index_type{blockDim .x } * index_type{blockIdx .x };
5454}
@@ -58,7 +58,7 @@ __device__ constexpr index_type global_thread_id() noexcept
5858 *
5959 * @return The grid stride
6060 */
61- __device__ constexpr index_type grid_stride () noexcept
61+ [[maybe_unused]] __device__ static index_type grid_stride () noexcept
6262{
6363 return index_type{gridDim .x } * index_type{blockDim .x };
6464}
You can’t perform that action at this time.
0 commit comments