6
6
#include < iostream>
7
7
#include < tuple>
8
8
9
- #include " oneapi/ tbb/enumerable_thread_specific.h"
10
- #include " oneapi/ tbb/task_group.h"
11
- #include " oneapi/ tbb/global_control.h"
9
+ #include " tbb/enumerable_thread_specific.h"
10
+ #include " tbb/task_group.h"
11
+ #include " tbb/global_control.h"
12
12
13
13
#include " binary_heap.h"
14
14
#include " bucket.h"
33
33
template <typename ConnectionRouter>
34
34
class RouteIterCtx {
35
35
public:
36
- oneapi:: tbb::enumerable_thread_specific<ConnectionRouter> routers;
36
+ tbb::enumerable_thread_specific<ConnectionRouter> routers;
37
37
const Netlist<>& net_list;
38
38
int itry;
39
39
float pres_fac;
40
40
const t_router_opts& router_opts;
41
41
CBRR& connections_inf;
42
- oneapi:: tbb::enumerable_thread_specific<RouterStats> router_stats;
43
- oneapi:: tbb::enumerable_thread_specific<timing_driven_route_structs> route_structs;
42
+ tbb::enumerable_thread_specific<RouterStats> router_stats;
43
+ tbb::enumerable_thread_specific<timing_driven_route_structs> route_structs;
44
44
NetPinsMatrix<float >& net_delay;
45
45
const ClusteredPinAtomPinsLookup& netlist_pin_lookup;
46
46
std::shared_ptr<SetupHoldTimingInfo> timing_info;
@@ -307,13 +307,13 @@ bool try_parallel_route_tmpl(const Netlist<>& net_list,
307
307
float total_prep_time = t.elapsed_sec ();
308
308
VTR_LOG (" # Built partition tree in %f seconds\n " , total_prep_time);
309
309
310
- oneapi:: tbb::global_control c (oneapi:: tbb::global_control::max_allowed_parallelism, max_workers);
311
- oneapi:: tbb::task_group tbb_task_group;
310
+ tbb::global_control c (tbb::global_control::max_allowed_parallelism, max_workers);
311
+ tbb::task_group tbb_task_group;
312
312
313
313
/* Set up thread local storage.
314
314
* tbb::enumerable_thread_specific will construct the elements as needed.
315
315
* see https://spec.oneapi.io/versions/1.0-rev-3/elements/oneTBB/source/thread_local_storage/enumerable_thread_specific_cls/construct_destroy_copy.html */
316
- auto routers = oneapi:: tbb::enumerable_thread_specific<ConnectionRouter>(ConnectionRouter (
316
+ auto routers = tbb::enumerable_thread_specific<ConnectionRouter>(ConnectionRouter (
317
317
device_ctx.grid ,
318
318
*router_lookahead,
319
319
device_ctx.rr_graph .rr_nodes (),
@@ -322,8 +322,8 @@ bool try_parallel_route_tmpl(const Netlist<>& net_list,
322
322
device_ctx.rr_graph .rr_switch (),
323
323
route_ctx.rr_node_route_inf ,
324
324
is_flat)); /* Here we provide an "exemplar" to copy for each thread */
325
- auto router_stats_thread = oneapi:: tbb::enumerable_thread_specific<RouterStats>();
326
- auto route_structs = oneapi:: tbb::enumerable_thread_specific<timing_driven_route_structs>(net_list);
325
+ auto router_stats_thread = tbb::enumerable_thread_specific<RouterStats>();
326
+ auto route_structs = tbb::enumerable_thread_specific<timing_driven_route_structs>(net_list);
327
327
328
328
RouterStats router_stats;
329
329
float prev_iter_cumm_time = 0 ;
@@ -857,7 +857,7 @@ NetResultFlags try_parallel_route_net(ConnectionRouter& router,
857
857
}
858
858
859
859
template <typename ConnectionRouter>
860
- void route_partition_tree_x (oneapi:: tbb::task_group& g,
860
+ void route_partition_tree_x (tbb::task_group& g,
861
861
PartitionTreeNode& node,
862
862
RouteIterCtx<ConnectionRouter>& ctx,
863
863
vtr::linear_map<ParentNetId, int >& nets_to_retry) {
@@ -938,7 +938,7 @@ static void reduce_partition_tree_x(const PartitionTreeNode& node, RouteIterResu
938
938
939
939
/* * Route all nets in parallel using the partitioning information in the PartitionTree. */
940
940
template <typename ConnectionRouter>
941
- RouteIterResults route_partition_tree (oneapi:: tbb::task_group& g,
941
+ RouteIterResults route_partition_tree (tbb::task_group& g,
942
942
PartitionTree& tree,
943
943
RouteIterCtx<ConnectionRouter>& ctx) {
944
944
auto & device_ctx = g_vpr_ctx.device ();
0 commit comments