/external/pthreadpool/src/ |
D | legacy-api.c | 56 size_t tile_j) in pthreadpool_compute_2d_tiled() argument 60 range_i, range_j, tile_i, tile_j, 0 /* flags */); in pthreadpool_compute_2d_tiled() 72 size_t tile_j; member 82 const size_t max_tile_j = context->tile_j; in compute_3d_tiled() 88 const size_t tile_j = min(max_tile_j, context->range_j - index_j); in compute_3d_tiled() local 90 context->function(context->argument, index_i, index_j, index_k, tile_i, tile_j, tile_k); in compute_3d_tiled() 101 size_t tile_j, in pthreadpool_compute_3d_tiled() argument 107 for (size_t j = 0; j < range_j; j += tile_j) { in pthreadpool_compute_3d_tiled() 109 …function(argument, i, j, k, min(range_i - i, tile_i), min(range_j - j, tile_j), min(range_k - k, t… in pthreadpool_compute_3d_tiled() 116 const size_t tile_range_j = divide_round_up(range_j, tile_j); in pthreadpool_compute_3d_tiled() [all …]
|
D | shim.c | 89 size_t tile_j, in pthreadpool_parallelize_2d_tile_1d() argument 93 for (size_t j = 0; j < range_j; j += tile_j) { in pthreadpool_parallelize_2d_tile_1d() 94 task(argument, i, j, min(range_j - j, tile_j)); in pthreadpool_parallelize_2d_tile_1d() 106 size_t tile_j, in pthreadpool_parallelize_2d_tile_2d() argument 110 for (size_t j = 0; j < range_j; j += tile_j) { in pthreadpool_parallelize_2d_tile_2d() 111 task(argument, i, j, min(range_i - i, tile_i), min(range_j - j, tile_j)); in pthreadpool_parallelize_2d_tile_2d() 125 size_t tile_j, in pthreadpool_parallelize_2d_tile_2d_with_uarch() argument 129 for (size_t j = 0; j < range_j; j += tile_j) { in pthreadpool_parallelize_2d_tile_2d_with_uarch() 131 min(range_i - i, tile_i), min(range_j - j, tile_j)); in pthreadpool_parallelize_2d_tile_2d_with_uarch() 180 size_t tile_j, in pthreadpool_parallelize_3d_tile_2d() argument [all …]
|
D | portable-api.c | 192 const size_t tile_j = threadpool->params.parallelize_2d_tile_1d.tile_j; in thread_parallelize_2d_tile_1d() local 194 size_t start_j = tile_index_i_j.remainder * tile_j; in thread_parallelize_2d_tile_1d() 198 task(argument, i, start_j, min(range_j - start_j, tile_j)); in thread_parallelize_2d_tile_1d() 199 start_j += tile_j; in thread_parallelize_2d_tile_1d() 217 const size_t start_j = tile_index_i_j.remainder * tile_j; in thread_parallelize_2d_tile_1d() 218 task(argument, tile_index_i_j.quotient, start_j, min(range_j - start_j, tile_j)); in thread_parallelize_2d_tile_1d() 238 const size_t tile_j = threadpool->params.parallelize_2d_tile_2d.tile_j; in thread_parallelize_2d_tile_2d() local 240 size_t start_j = tile_index_i_j.remainder * tile_j; in thread_parallelize_2d_tile_2d() 245 task(argument, start_i, start_j, min(range_i - start_i, tile_i), min(range_j - start_j, tile_j)); in thread_parallelize_2d_tile_2d() 246 start_j += tile_j; in thread_parallelize_2d_tile_2d() [all …]
|
D | fastpath.c | 211 const size_t tile_j = threadpool->params.parallelize_2d_tile_1d.tile_j; in pthreadpool_thread_parallelize_2d_tile_1d_fastpath() local 213 size_t start_j = tile_index_i_j.remainder * tile_j; in pthreadpool_thread_parallelize_2d_tile_1d_fastpath() 217 task(argument, i, start_j, min(range_j - start_j, tile_j)); in pthreadpool_thread_parallelize_2d_tile_1d_fastpath() 218 start_j += tile_j; in pthreadpool_thread_parallelize_2d_tile_1d_fastpath() 235 const size_t start_j = tile_index_i_j.remainder * tile_j; in pthreadpool_thread_parallelize_2d_tile_1d_fastpath() 236 task(argument, tile_index_i_j.quotient, start_j, min(range_j - start_j, tile_j)); in pthreadpool_thread_parallelize_2d_tile_1d_fastpath() 262 const size_t tile_j = threadpool->params.parallelize_2d_tile_2d.tile_j; in pthreadpool_thread_parallelize_2d_tile_2d_fastpath() local 264 size_t start_j = tile_index_i_j.remainder * tile_j; in pthreadpool_thread_parallelize_2d_tile_2d_fastpath() 269 task(argument, start_i, start_j, min(range_i - start_i, tile_i), min(range_j - start_j, tile_j)); in pthreadpool_thread_parallelize_2d_tile_2d_fastpath() 270 start_j += tile_j; in pthreadpool_thread_parallelize_2d_tile_2d_fastpath() [all …]
|
D | threadpool-object.h | 121 size_t tile_j; member 144 size_t tile_j; member 175 size_t tile_j; member 220 size_t tile_j; member 255 size_t tile_j; member
|
/external/pthreadpool/include/ |
D | pthreadpool.h | 265 size_t tile_j, 307 size_t tile_j, 367 size_t tile_j, 492 size_t tile_j, 554 size_t tile_j, 1130 size_t tile_j) PTHREADPOOL_DEPRECATED; 1140 size_t tile_j, 1152 size_t tile_j,
|
/external/pthreadpool/test/ |
D | pthreadpool.cc | 1292 static void CheckBounds2DTile1D(void*, size_t i, size_t start_j, size_t tile_j) { in CheckBounds2DTile1D() argument 1295 EXPECT_LE(start_j + tile_j, kParallelize2DTile1DRangeJ); in CheckBounds2DTile1D() 1326 static void CheckTiling2DTile1D(void*, size_t i, size_t start_j, size_t tile_j) { in CheckTiling2DTile1D() argument 1327 EXPECT_GT(tile_j, 0); in CheckTiling2DTile1D() 1328 EXPECT_LE(tile_j, kParallelize2DTile1DTileJ); in CheckTiling2DTile1D() 1330 …EXPECT_EQ(tile_j, std::min<size_t>(kParallelize2DTile1DTileJ, kParallelize2DTile1DRangeJ - start_j… in CheckTiling2DTile1D() 1361 … SetTrue2DTile1D(std::atomic_bool* processed_indicators, size_t i, size_t start_j, size_t tile_j) { in SetTrue2DTile1D() argument 1362 for (size_t j = start_j; j < start_j + tile_j; j++) { in SetTrue2DTile1D() 1416 …d Increment2DTile1D(std::atomic_int* processed_counters, size_t i, size_t start_j, size_t tile_j) { in Increment2DTile1D() argument 1417 for (size_t j = start_j; j < start_j + tile_j; j++) { in Increment2DTile1D() [all …]
|