Lines Matching refs:N
65 template<size_t N>
69 …(void)std::get<N-1>(p).try_put(converter<InputType,typename std::tuple_element<N-1,ports_type>::ty…
70 output_converted_value<N-1>(i, p);
113 static const int N = std::tuple_size<OutputSet>::value;
116 mof_helper<N>::output_converted_value(i, p);
652 const int N = 30;
654 const int N = 300;
669 …utils::NativeParallelFor(N, harness_reserving_body<ReservingNodeType, DataType, false>(reserving_n…
672 CHECK(end_receiver.my_count == N);
675 …utils::NativeParallelFor(N, harness_reserving_body<ReservingNodeType, DataType, true>(reserving_n,…
678 CHECK(end_receiver.my_count == 2 * N);
721 void test_unlimited_lightweight_execution(unsigned N) {
725 utils::NativeParallelFor(N, native_loop_body<NodeType>(node));
728 CHECK_MESSAGE(g_body_count == N, "Body needs to be executed N times");
799 void test_limited_lightweight_execution(unsigned N, unsigned concurrency) {
806 utils::SpinBarrier barrier(N - concurrency);
807 utils::NativeParallelFor(N, native_loop_limited_body<NodeType>(node, barrier));
809 CHECK_MESSAGE(g_body_count == N, "Body needs to be executed N times");
811 …CHECK_MESSAGE(g_task_count == N - concurrency, "Body needs to be executed as not lightweight N - 1…
817 void test_limited_lightweight_execution_with_throwing_body(unsigned N, unsigned concurrency) {
823 utils::SpinBarrier barrier(N);
824 utils::NativeParallelFor(N, native_loop_limited_body<NodeType>(node, barrier));
826 CHECK_MESSAGE(g_body_count == N, "Body needs to be executed N times");
828 CHECK_MESSAGE(g_task_count == N, "Body needs to be executed as task N times");
893 void test_lightweight(unsigned N) {
894 test_unlimited_lightweight_execution<NodeType>(N);
895 test_limited_lightweight_execution<NodeType>(N, tbb::flow::serial);
896 …test_limited_lightweight_execution<NodeType>(N, (std::min)(std::thread::hardware_concurrency() / 2…
898 test_limited_lightweight_execution_with_throwing_body<NodeType>(N, tbb::flow::serial);
902 void test(unsigned N) {
905 test_lightweight<node_type>(N);