Skip to content

Commit 37d5928

Browse files
authored
Merge pull request #2394 from verilog-to-routing/add_tbb_gaurd
Issue#2393 (add guards for tbb compilation)
2 parents f41df3b + 6c5dc4e commit 37d5928

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

vpr/src/base/vpr_api.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -366,9 +366,12 @@ bool vpr_flow(t_vpr_setup& vpr_setup, t_arch& arch) {
366366
return true;
367367
}
368368

369+
#ifdef VPR_USE_TBB
370+
369371
/* Set this here, because tbb::global_control doesn't control anything once it's out of scope
370372
* (contrary to the name). */
371373
tbb::global_control c(tbb::global_control::max_allowed_parallelism, vpr_setup.num_workers);
374+
#endif
372375

373376
{ //Pack
374377
bool pack_success = vpr_pack_flow(vpr_setup, arch);

0 commit comments

Comments
 (0)