MCPcopy Create free account
hub / github.com/Tencent/hpc-ops / thread

Function thread

3rd/cutlass/include/cute/util/debug.hpp:132–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130}
131
132CUTE_HOST_DEVICE
133bool
134thread([[maybe_unused]] int tid, [[maybe_unused]] int bid)
135{
136#if defined(__CUDA_ARCH__)
137 return (threadIdx.x + threadIdx.y*blockDim.x + threadIdx.z*blockDim.x*blockDim.y == static_cast<unsigned int>(tid)) && block(bid);
138#else
139 return true;
140#endif
141}
142
143CUTE_HOST_DEVICE
144bool

Callers 1

thread0Function · 0.85

Calls 1

blockFunction · 0.85

Tested by

no test coverage detected