Skip to content

Commit

Permalink
Fix issue with GUI and chia plotters when making compressed plots (#…
Browse files Browse the repository at this point in the history
…16232)

* don't pass in no-direct-downloads on false

* Remove no-direct-downloads

* Remove no-direct-downloads
  • Loading branch information
emlowe authored Sep 5, 2023
1 parent 861629a commit 27ccd9a
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 14 deletions.
3 changes: 0 additions & 3 deletions chia/daemon/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -865,15 +865,12 @@ def _bladebit_plotting_command_args(self, request: Any, ignoreCount: bool) -> Li
# Options only applicable for cudaplot
if plot_type == "cudaplot":
device_index = request.get("device", None)
no_direct_downloads = request.get("no_direct_downloads", False)
t1 = request.get("t", None) # Temp directory
t2 = request.get("t2", None) # Temp2 directory

if device_index is not None and str(device_index).isdigit():
command_args.append("--device")
command_args.append(str(device_index))
if no_direct_downloads:
command_args.append("--no-direct-downloads")
if t1 is not None:
command_args.append("-t")
command_args.append(t1)
Expand Down
2 changes: 0 additions & 2 deletions chia/plotters/bladebit.py
Original file line number Diff line number Diff line change
Expand Up @@ -365,8 +365,6 @@ def plot_bladebit(args, chia_root_path, root_path):
if "device" in args and str(args.device).isdigit():
call_args.append("--device")
call_args.append(str(args.device))
if "no_direct_downloads" in args and args.no_direct_downloads is not None:
call_args.append("--no-direct-downloads")

call_args.append(args.finaldir)

Expand Down
9 changes: 0 additions & 9 deletions chia/plotters/plotters.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ class Options(Enum):
BLADEBIT_NO_T2_DIRECT = 36
COMPRESSION = 37
BLADEBIT_DEVICE_INDEX = 38
BLADEBIT_NO_DIRECT_DOWNLOADS = 39
CUDA_TMP_DIR = 40


Expand Down Expand Up @@ -113,7 +112,6 @@ class Options(Enum):
Options.FINAL_DIR,
Options.COMPRESSION,
Options.BLADEBIT_DEVICE_INDEX,
Options.BLADEBIT_NO_DIRECT_DOWNLOADS,
]

bladebit_ram_plotter_options = [
Expand Down Expand Up @@ -466,13 +464,6 @@ def build_parser(subparsers, root_path, option_list, name, plotter_desc):
help="The CUDA device index",
default=0,
)
if option is Options.BLADEBIT_NO_DIRECT_DOWNLOADS:
parser.add_argument(
"--no-direct-downloads",
action="store_true",
help="Don't allocate host tables using pinned buffers",
default=False,
)


def call_plotters(root_path: Path, args):
Expand Down

0 comments on commit 27ccd9a

Please sign in to comment.