Skip to content

Commit 01dbbfc

Browse files
committed
fix formatting
1 parent c6a5902 commit 01dbbfc

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

libs/libvtrutil/src/vtr_thread_pool.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ namespace vtr {
3333
* pool.wait_for_all(); // There's no API to wait for a single task
3434
*/
3535
class thread_pool {
36-
private:
36+
private:
3737
/* Thread-local data */
3838
struct ThreadData {
3939
std::thread thread;
@@ -58,7 +58,7 @@ class thread_pool {
5858
std::mutex completion_mutex;
5959
std::condition_variable completion_cv;
6060

61-
public:
61+
public:
6262
thread_pool(size_t thread_count) {
6363
threads.reserve(thread_count);
6464

@@ -110,12 +110,12 @@ class thread_pool {
110110
try {
111111
f();
112112
} catch (const std::exception& e) {
113-
VTR_LOG_ERROR("Thread %zu failed task with error: %s\n",
114-
std::this_thread::get_id(), e.what());
113+
VTR_LOG_ERROR("Thread %zu failed task with error: %s\n",
114+
std::this_thread::get_id(), e.what());
115115
throw;
116116
} catch (...) {
117-
VTR_LOG_ERROR("Thread %zu failed task with unknown error\n",
118-
std::this_thread::get_id());
117+
VTR_LOG_ERROR("Thread %zu failed task with unknown error\n",
118+
std::this_thread::get_id());
119119
throw;
120120
}
121121

@@ -156,4 +156,4 @@ class thread_pool {
156156
}
157157
};
158158

159-
} // namespace vtr
159+
} // namespace vtr

vpr/src/base/read_options.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2557,7 +2557,7 @@ argparse::ArgumentParser create_arg_parser(const std::string& prog_name, t_optio
25572557
" * parallel_decomp: timing_driven with additional parallelism obtained by decomposing high-fanout nets, possibly reducing quality\n"
25582558
" * nested: parallel with parallelized path search\n")
25592559
.default_value("timing_driven")
2560-
.choices({"nested","parallel", "parallel_decomp", "timing_driven"})
2560+
.choices({"nested", "parallel", "parallel_decomp", "timing_driven"})
25612561
.show_in(argparse::ShowIn::HELP_ONLY);
25622562

25632563
route_grp.add_argument(args.min_incremental_reroute_fanout, "--min_incremental_reroute_fanout")

vpr/src/route/NestedNetlistRouter.tpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ inline RouteIterResults NestedNetlistRouter<HeapType>::route_netlist(int itry, f
2222
/* Organize netlist into a PartitionTree.
2323
* Nets in a given level of nodes are guaranteed to not have any overlapping bounding boxes, so they can be routed in parallel. */
2424
vtr::Timer timer;
25-
if(!_tree){
25+
if (!_tree) {
2626
_tree = PartitionTree(_net_list);
2727
PartitionTreeDebug::log("Iteration " + std::to_string(itry) + ": built partition tree in " + std::to_string(timer.elapsed_sec()) + " s");
2828
}
@@ -62,7 +62,7 @@ void NestedNetlistRouter<HeapType>::route_partition_tree_node(PartitionTreeNode&
6262
});
6363

6464
vtr::Timer timer;
65-
65+
6666
/* Route all nets in this node serially */
6767
for (auto net_id : nets) {
6868
auto& results = get_thread_results();
@@ -105,9 +105,9 @@ void NestedNetlistRouter<HeapType>::route_partition_tree_node(PartitionTreeNode&
105105
}
106106

107107
PartitionTreeDebug::log("Node with " + std::to_string(node.nets.size())
108-
+ " nets and " + std::to_string(node.vnets.size())
109-
+ " virtual nets routed in " + std::to_string(timer.elapsed_sec())
110-
+ " s");
108+
+ " nets and " + std::to_string(node.vnets.size())
109+
+ " virtual nets routed in " + std::to_string(timer.elapsed_sec())
110+
+ " s");
111111

112112
/* Schedule child nodes as new tasks */
113113
if (node.left && node.right) {

0 commit comments

Comments
 (0)