Skip to content

Commit

Permalink
Plotting needs Mo memory (#620)
Browse files Browse the repository at this point in the history
* Increase memory for k32, test black

* black wants line hyphen length in pyproject.toml
  • Loading branch information
hoffmang9 authored and Yostra committed Jan 12, 2021
1 parent c3b6f30 commit 3452c4b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions .github/workflows/linter.yml
Expand Up @@ -51,6 +51,7 @@ jobs:
VALIDATE_ALL_CODEBASE: true
DEFAULT_BRANCH: master
LINTER_RULES_PATH: .github/linters
PYTHON_BLACK_CONFIG_FILE: .python-black
VALIDATE_BASH: true
VALIDATE_CSS: true
VALIDATE_DOCKER: true
Expand Down
8 changes: 4 additions & 4 deletions electron-react/src/constants/plotSizes.ts
Expand Up @@ -9,7 +9,7 @@ export const defaultPlotSize: PlotSize = {
label: '101.4GiB',
value: 32,
workspace: '332GiB',
defaultRam: 4072,
defaultRam: 4608,
};

const plotSizes: PlotSize[] = [
Expand All @@ -21,10 +21,10 @@ const plotSizes: PlotSize[] = [
{ label: '23.8GiB', value: 30, workspace: '83GiB', defaultRam: 1024 },
{ label: '49.1GiB', value: 31, workspace: '165GiB', defaultRam: 2036 },
defaultPlotSize,
{ label: '208.8GiB', value: 33, workspace: '589GiB', defaultRam: 7168 },
{ label: '208.8GiB', value: 33, workspace: '589GiB', defaultRam: 9216 },
// workspace are guesses using 55.35% - rounded up - past here
{ label: '429.8GiB', value: 34, workspace: '1177GiB', defaultRam: 14336 },
{ label: '884.1GiB', value: 35, workspace: '2355GiB', defaultRam: 28672 },
{ label: '429.8GiB', value: 34, workspace: '1177GiB', defaultRam: 18432 },
{ label: '884.1GiB', value: 35, workspace: '2355GiB', defaultRam: 36864 },
];

export const plotSizeOptions = plotSizes.map((item) => ({
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Expand Up @@ -6,4 +6,4 @@ build-backend = "setuptools.build_meta"
local_scheme = "no-local-version"

[tool.black]
line_length = 120
line-length = 120
2 changes: 1 addition & 1 deletion src/cmds/plots.py
Expand Up @@ -39,7 +39,7 @@ def help_message():
def make_parser(parser):
parser.add_argument("-k", "--size", help="Plot size", type=int, default=32)
parser.add_argument("-n", "--num", help="Number of plots or challenges", type=int, default=1)
parser.add_argument("-b", "--buffer", help="Mebibytes for sort/plot buffer", type=int, default=4072)
parser.add_argument("-b", "--buffer", help="Mebibytes for sort/plot buffer", type=int, default=4608)
parser.add_argument("-r", "--num_threads", help="Number of threads to use", type=int, default=2)
parser.add_argument("-u", "--buckets", help="Number of buckets", type=int, default=0)
parser.add_argument("-s", "--stripe_size", help="Stripe size", type=int, default=0)
Expand Down

0 comments on commit 3452c4b

Please sign in to comment.