| 276 | } |
| 277 | |
| 278 | int3 ConvBuffer1x1::GetGridSize() const { |
| 279 | if (src_[0]->Width() % 2 == 0) { // using kernel_flt8_ |
| 280 | const int grid_x = |
| 281 | IntegralDivideRoundUp(GetGridWidth(dst_[0]->Width()), flt8_x_count_); |
| 282 | const int grid_y = IntegralDivideRoundUp(dst_[0]->Height(), flt8_y_count_); |
| 283 | const int grid_z = dst_[0]->Depth(); |
| 284 | return int3(grid_x, grid_y, grid_z); |
| 285 | } else { // using kernel_flt4_ |
| 286 | const int grid_x = |
| 287 | IntegralDivideRoundUp(GetGridWidth(dst_[0]->Width()), flt4_x_count_); |
| 288 | const int grid_y = IntegralDivideRoundUp(dst_[0]->Height(), flt4_y_count_); |
| 289 | const int grid_z = dst_[0]->Depth(); |
| 290 | return int3(grid_x, grid_y, grid_z); |
| 291 | } |
| 292 | } |
| 293 | |
| 294 | Status ConvBuffer1x1::Tune(const TuningParameters& params) { |
| 295 | RETURN_IF_ERROR(BindArguments()); |
nothing calls this directly
no test coverage detected