Skip to content

Commit

Permalink
Make executable script and add header
Browse files Browse the repository at this point in the history
  • Loading branch information
ferdonline committed Oct 23, 2024
1 parent 0ce6c18 commit 75edaaf
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions tools/rebalance-corenrn-data.py
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
#!/bin/env python3

"""
A post-processing script to redistribute CoreNeuron input files
more evenly across ranks based on their filesystem size.
Blue Brain Project - EPFL, 2024
"""

import argparse
import heapq
import itertools
Expand Down Expand Up @@ -100,7 +110,7 @@ def with_progress(elements):
def main():
# Step 1: Set up argparse for the CLI
parser = argparse.ArgumentParser(
description="Redistribute the dat files into N buckets based on file sizes."
description="Redistribute CoreNeuron dat files, optimizing for a given number of ranks"
)
parser.add_argument(
'input_file',
Expand All @@ -110,7 +120,7 @@ def main():
parser.add_argument(
'n_ranks',
type=int,
help="Optimize the distribution for given number of ranks"
help="Number of target ranks"
)
parser.add_argument(
'--max-entries',
Expand Down

0 comments on commit 75edaaf

Please sign in to comment.