Skip to content

Commit 355ba50

Browse files
make format
1 parent 8f3b2fa commit 355ba50

File tree

3 files changed

+5
-27
lines changed

3 files changed

+5
-27
lines changed

vpr/src/place/initial_placement.cpp

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1164,31 +1164,6 @@ static bool assess_noc_swap(double delta_cost, double prob) {
11641164
}
11651165
}
11661166

1167-
static int findFirstInteger(const std::string& str) {
1168-
std::string numberString;
1169-
bool foundNumber = false;
1170-
1171-
for (char c : str) {
1172-
if (isdigit(c)) {
1173-
numberString += c;
1174-
foundNumber = true;
1175-
} else if (foundNumber) {
1176-
// We encountered a non-digit character after finding a number,
1177-
// so we stop searching.
1178-
break;
1179-
}
1180-
}
1181-
1182-
if (!numberString.empty()) {
1183-
// Convert the string to an integer using stoi() function
1184-
return std::stoi(numberString);
1185-
} else {
1186-
// If no integer is found, return a default value or handle the case
1187-
// according to your requirements.
1188-
return -1;
1189-
}
1190-
}
1191-
11921167
static void initial_noc_placement(const t_noc_opts& noc_opts) {
11931168
auto& place_ctx = g_vpr_ctx.placement();
11941169
auto& noc_ctx = g_vpr_ctx.noc();

vpr/test/test_noc_storage.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ TEST_CASE("test_remove_link", "[vpr_noc]") {
279279
std::mt19937 rand_num_gen(device());
280280

281281
// random number generation to determine routers of the link to remove
282-
std::uniform_int_distribution<std::mt19937::result_type> src_router(0, NUM_OF_ROUTERS-1);
282+
std::uniform_int_distribution<std::mt19937::result_type> src_router(0, NUM_OF_ROUTERS - 1);
283283
std::uniform_int_distribution<std::mt19937::result_type> sink_router(1, NOC_CONNECTIVITY - 1);
284284

285285
// create the NoC

vtr_flow/tasks/regression_tests/vtr_reg_nightly_test2/titan_quick_qor/config/config.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,4 +67,7 @@ pass_requirements_file=pass_requirements_vpr_titan.txt
6767
#A large number of routing iterations is set to ensure the router doesn't give up to easily on the larger benchmarks
6868
#To be more run-time comparable to commercial tools like Quartus, we run with higher placer effort (inner_num=2) and lower astar_fac (1.0)
6969
#Set a 24hr timeout so they don't run forever
70-
script_params=-starting_stage vpr --route_chan_width 300 --max_router_iterations 400 --router_lookahead map -timeout 86400 --initial_pres_fac 1.0 --router_profiler_astar_fac 1.5 --seed 3
70+
script_params=-starting_stage vpr --route_chan_width 300 --max_router_iterations 400 --router_lookahead map -timeout 86400 --initial_pres_fac 1.0 --router_profiler_astar_fac 1.5
71+
script_params_list_add=-starting_stage vpr --seed 3
72+
script_params_list_add=-starting_stage vpr --seed 4
73+
script_params_list_add=-starting_stage vpr --seed 5

0 commit comments

Comments
 (0)