Lines Matching refs:SPECULATION_CNT
113 #define SPECULATION_CNT 2 macro
115 oneapi::tbb::flow::graph *g[SPECULATION_CNT]; // main graph; there should only be one per epoch
116 b_node *send_to[SPECULATION_CNT]; // broadcast node to send exemplar to all function_nodes
118 *q[SPECULATION_CNT]; // queue for function nodes to put their results in
120 search_node_array_type *s_array[SPECULATION_CNT]; // 2d array of function nodes
121 graph_array_type *g_array[SPECULATION_CNT]; // 2d array of graphs
145 for (int scnt = 0; scnt < SPECULATION_CNT; ++scnt) { in build_BMU_graph()
198 for (int scnt = 0; scnt < SPECULATION_CNT; ++scnt) { in destroy_BMU_graph()
395 (send_to[epoch % SPECULATION_CNT])->try_put(in[j]); in graph_teach()
398 (send_to[epoch % SPECULATION_CNT])->try_put(in[j]); in graph_teach()
400 (send_to[(epoch + 1) % SPECULATION_CNT])->try_put(in[next_j]); in graph_teach()
404 (send_to[(epoch + 1) % SPECULATION_CNT])->try_put(in[next_j]); in graph_teach()
406 min_sr = graph_BMU(epoch % SPECULATION_CNT); //calls wait_for_all() in graph_teach()
413 std::get<XV>(min_sr), std::get<YV>(min_sr), radius, (epoch + 1) % SPECULATION_CNT); in graph_teach()
422 wait_for_all_graphs((epoch + 1) % SPECULATION_CNT); // wait for the array of subgraphs in graph_teach()
426 (epoch + 1) % SPECULATION_CNT, in graph_teach()