Skip to content

Commit b8d0455

Browse files
committed
2 parents b013af7 + e3380ce commit b8d0455

File tree

7 files changed

+81
-64
lines changed

7 files changed

+81
-64
lines changed

.github/workflows/stale.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: 'Close Stale Issues'
2+
on:
3+
schedule:
4+
# Run everyday at 1 PM UTC
5+
- cron: '0 13 * * *'
6+
7+
jobs:
8+
stale:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/stale@v9
12+
with:
13+
# The message to be shown for stale issues
14+
stale-issue-message: 'This issue has been inactive for a year and has been marked as stale. It will be closed in 15 days if it continues to be stale. If you believe this is still an issue, please add a comment.'
15+
close-issue-message: 'This issue has been marked stale for 15 days and has been automatically closed.'
16+
# If you want to exempt an issue from being marked stale/deleted, label it as 'no-stale'
17+
exempt-issue-labels: 'no-stale'
18+
days-before-issue-stale: 365
19+
days-before-issue-close: 15
20+
# Start from the oldest issues
21+
ascending: true
22+
23+
# The configuration below can be used to allow the same behaviour with PRs.
24+
# Since we currently don't want to close old PRs, it is commented out but
25+
# left here in case we change our mind.
26+
27+
# stale-pr-message: 'This PR has been inactive for a year and has been marked as stale. It will be closed in 15 days if it continues to be stale. If you are still working on this PR, please add a comment.'
28+
# close-pr-message: 'This PR has been marked stale for 15 days and has been automatically closed.'
29+
# exempt-pr-labels: 'no-stale'
30+
# days-before-pr-stale: 365
31+
# days-before-pr-close: 15

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ This information helps us to quickly reproduce (and hopefully fix) the issue:
7777

7878
Tell us what version of VTR you are using (e.g. the output of `vpr --version`), which Operating System and compiler you are using, or any other relevant information about where or how you are building/running VTR.
7979

80-
Once you've gathered all the information [open an Issue](https://github.com/verilog-to-routing/vtr-verilog-to-routing/issues/new?template=bug_report.md) on our issue tracker.
80+
Once you've gathered all the information [open an Issue](https://github.com/verilog-to-routing/vtr-verilog-to-routing/issues/new?template=bug_report.md) on our issue tracker. Issues that do not have any activity for a year will be automatically marked as stale and will be closed after 15 days of being marked as stale.
8181

8282
If you know how to fix the issue, or already have it coded-up, please also consider [submitting the fix](#submitting-code-to-vtr).
8383
This is likely the fastest way to get bugs fixed!

libs/libarchfpga/src/cad_types.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ struct t_cluster_placement_primitive {
126126
t_pb_graph_node* pb_graph_node;
127127
bool valid;
128128
float base_cost; /* cost independent of current status of packing */
129-
float incremental_cost; /* cost dependant on current status of packing */
129+
float incremental_cost; /* cost dependent on current status of packing */
130130
};
131131

132132
#endif

vpr/src/pack/cluster_legalizer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1205,7 +1205,7 @@ e_block_pack_status ClusterLegalizer::try_pack_molecule(PackMoleculeId molecule_
12051205
while (block_pack_status != e_block_pack_status::BLK_PASSED) {
12061206
if (!get_next_primitive_list(cluster.placement_stats,
12071207
molecule_id,
1208-
primitives_list.data(),
1208+
primitives_list,
12091209
prepacker_)) {
12101210
VTR_LOGV(log_verbosity_ > 3, "\t\tFAILED No candidate primitives available\n");
12111211
block_pack_status = e_block_pack_status::BLK_FAILED_FEASIBLE;

vpr/src/pack/cluster_placement.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,13 @@ static void update_primitive_cost_or_status(t_intra_cluster_placement_stats* clu
4646
static float try_place_molecule(t_intra_cluster_placement_stats* cluster_placement_stats,
4747
PackMoleculeId molecule_id,
4848
t_pb_graph_node* root,
49-
t_pb_graph_node** primitives_list,
49+
std::vector<t_pb_graph_node*>& primitives_list,
5050
const Prepacker& prepacker);
5151

5252
static bool expand_forced_pack_molecule_placement(t_intra_cluster_placement_stats* cluster_placement_stats,
5353
PackMoleculeId molecule_id,
5454
const t_pack_pattern_block* pack_pattern_block,
55-
t_pb_graph_node** primitives_list,
55+
std::vector<t_pb_graph_node*>& primitives_list,
5656
const Prepacker& prepacker,
5757
float* cost);
5858

@@ -177,7 +177,7 @@ void free_cluster_placement_stats(t_intra_cluster_placement_stats* cluster_place
177177

178178
bool get_next_primitive_list(t_intra_cluster_placement_stats* cluster_placement_stats,
179179
PackMoleculeId molecule_id,
180-
t_pb_graph_node** primitives_list,
180+
std::vector<t_pb_graph_node*>& primitives_list,
181181
const Prepacker& prepacker,
182182
int force_site) {
183183
std::unordered_multimap<int, t_cluster_placement_primitive*>::iterator best;
@@ -479,7 +479,7 @@ static void update_primitive_cost_or_status(t_intra_cluster_placement_stats* clu
479479
static float try_place_molecule(t_intra_cluster_placement_stats* cluster_placement_stats,
480480
PackMoleculeId molecule_id,
481481
t_pb_graph_node* root,
482-
t_pb_graph_node** primitives_list,
482+
std::vector<t_pb_graph_node*>& primitives_list,
483483
const Prepacker& prepacker) {
484484
float cost = std::numeric_limits<float>::max();
485485
const t_pack_molecule& molecule = prepacker.get_molecule(molecule_id);
@@ -527,7 +527,7 @@ static float try_place_molecule(t_intra_cluster_placement_stats* cluster_placeme
527527
static bool expand_forced_pack_molecule_placement(t_intra_cluster_placement_stats* cluster_placement_stats,
528528
PackMoleculeId molecule_id,
529529
const t_pack_pattern_block* pack_pattern_block,
530-
t_pb_graph_node** primitives_list,
530+
std::vector<t_pb_graph_node*>& primitives_list,
531531
const Prepacker& prepacker,
532532
float* cost) {
533533
t_pb_graph_node* pb_graph_node = primitives_list[pack_pattern_block->block_id];

vpr/src/pack/cluster_placement.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ void free_cluster_placement_stats(t_intra_cluster_placement_stats* cluster_place
163163
bool get_next_primitive_list(
164164
t_intra_cluster_placement_stats* cluster_placement_stats,
165165
PackMoleculeId molecule_id,
166-
t_pb_graph_node** primitives_list,
166+
std::vector<t_pb_graph_node*>& primitives_list,
167167
const Prepacker& prepacker,
168168
int force_site = -1);
169169

0 commit comments

Comments
 (0)