Lines Matching refs:nc
42 const size_t nc = state.range(1); in GEMMBenchmark() local
45 const size_t nc_stride = benchmark::utils::RoundUp(nc, nr); in GEMMBenchmark()
55 std::vector<uint8_t> k(nc * kc); in GEMMBenchmark()
57 std::vector<int32_t> b(nc); in GEMMBenchmark()
61 const size_t c_elements = mc * nc; in GEMMBenchmark()
69 …xnn_pack_qu8_gemm_goi_w(1 /* groups */, nc, kc, nr, kr, sr, k.data(), b.data(), w.data(), &packing… in GEMMBenchmark()
89 for (uint32_t n = 0; n < nc; n += nr) { in GEMMBenchmark()
90 const uint32_t nb = min(nc - n, nr); in GEMMBenchmark()
95 c.data() + (mc * buffer_index + m) * nc + n, nc * sizeof(uint8_t), nr * sizeof(uint8_t), in GEMMBenchmark()
107 uint64_t(state.iterations()) * 2 * mc * nc * kc, benchmark::Counter::kIsRate); in GEMMBenchmark()
147 const size_t nc = state.range(1); in GemmlowpBenchmark() local
158 const size_t kElements = nc * kc; in GemmlowpBenchmark()
159 const size_t bElements = nc; in GemmlowpBenchmark()
160 const size_t c_elements = mc * nc; in GemmlowpBenchmark()
183 …p<const uint8_t, gemmlowp::MapOrder::ColMajor> BM(k.data() + buffer_index * kElements, kc, nc, kc); in GemmlowpBenchmark()
184 …rixMap<uint8_t, gemmlowp::MapOrder::RowMajor> CM(c.data() + buffer_index * c_elements, mc, nc, nc); in GemmlowpBenchmark()
185 …peline = GemmlowpOutputPipeline::Make(b.data() + buffer_index * bElements, nc, 127, 127, 127, 0, 2… in GemmlowpBenchmark()
196 uint64_t(state.iterations()) * 2 * mc * nc * kc, benchmark::Counter::kIsRate); in GemmlowpBenchmark()
210 const size_t nc = state.range(1); in RuyBenchmark() local
220 nc * (sizeof(uint8_t) * (mc + kc) + sizeof(int32_t))); in RuyBenchmark()
224 std::vector<uint8_t> k(num_buffers * nc * kc); in RuyBenchmark()
226 std::vector<int32_t> b(num_buffers * nc); in RuyBenchmark()
228 std::vector<uint8_t> c(num_buffers * nc * mc); in RuyBenchmark()
236 ruy::MakeSimpleLayout(nc, kc, ruy::Order::kRowMajor, ruy_a.mutable_layout()); in RuyBenchmark()
243 ruy::MakeSimpleLayout(nc, mc, ruy::Order::kColMajor, ruy_c.mutable_layout()); in RuyBenchmark()
277 ruy_a.set_data(k.data() + buffer_index * nc * kc); in RuyBenchmark()
278 ruy_c.set_data(c.data() + buffer_index * mc * nc); in RuyBenchmark()
279 mul_params.set_bias(b.data() + buffer_index * nc); in RuyBenchmark()
290 uint64_t(state.iterations()) * 2 * mc * nc * kc, benchmark::Counter::kIsRate); in RuyBenchmark()