returns the size of a block that can be reduced using horizontal SIMD operations (e.g. __shfl_xor_sync)
| 54 | |
| 55 | // returns the size of a block that can be reduced using horizontal SIMD operations (e.g. __shfl_xor_sync) |
| 56 | dim3 getWarpSize(dim3 blockSize) |
| 57 | { |
| 58 | return dim3( |
| 59 | std::min(blockSize.x, 32u), |
| 60 | std::min(std::max(32u / blockSize.x, 1u), std::min(32u, blockSize.y)), |
| 61 | std::min(std::max(32u / (blockSize.x * blockSize.y), 1u), std::min(32u, blockSize.z)) |
| 62 | ); |
| 63 | } |
| 64 | |
| 65 | dim3 getLaunchGridSize(dim3 blockSize, dim3 dims) |
| 66 | { |
nothing calls this directly
no outgoing calls
no test coverage detected