Chia-Network / bladebit

A high-performance k32-only, Chia (XCH) plotter supporting in-RAM and disk-based plotting
Apache License 2.0
340 stars 107 forks source link

[Bug] bladebit cudaplot [-d=device] parameter doesn't working #420

Closed MichaelFolder closed 9 months ago

MichaelFolder commented 9 months ago

What happened?

The option -d=device to set the device in bladebit cudaplot does not work as you help us, it is concatenated with the destination folder string to create the plot.

Upd.: Working good -d N path... OMG

Version

2.0.1

What platform are you using?

Windows

What ui mode are you using?

CLI

Relevant log output

PS C:\Program Files\Chia\resources\app.asar.unpacked\daemon> bladebit\bladebit_cuda.exe help cudaplot
bladebit_cuda -f ... -p/c ... cudaplot [-d=device] <out_dirs>

PS C:\Program Files\Chia\resources\app.asar.unpacked\daemon> bladebit\bladebit_cuda -t 24 -z 5 -f [REDACTED] -c [REDACTED] -m cudaplot -d=0 A:\

Bladebit Chia Plotter
Version      : 3.0.0
Git Commit   : 02a8e68dcf0e971c72fc8377b89cdd081b80b843
Compiled With: msvc 19.29.30151

[Global Plotting Config]
 Will create 1 plots.
 Thread count          : 24
 Warm start enabled    : false
 NUMA disabled         : true
 CPU affinity disabled : false
 Farmer public key     : [REDACTED]
 Pool contract address : [REDACTED]
 Compression Level     : 5
 Benchmark mode        : disabled

[Bladebit CUDA Plotter]
Selected cuda device 0 : NVIDIA GeForce RTX 3060
 CUDA Compute Capability   : 8.6
 SM count                  : 28
 Max blocks per SM         : 16
 Max threads per SM        : 1536
 Async Engine Count        : 2
 L2 cache size             : 2.25 MB
 L2 persist cache max size : 1.69 MB
 Stack Size                : 1.00 KB
 Memory:
  Total                    : 12.00 GB
  Free                     : 9.96 GB

Allocating buffers (this may take a few seconds)...
Kernel RAM required       : 90240524288  bytes ( 86060.07  MiB or 84.04  GiB )
Intermediate RAM required : 2999001088   bytes ( 2860.07   MiB or 2.79   GiB )
Host RAM required         : 141733920768 bytes ( 135168.00 MiB or 132.00 GiB )
Total Host RAM required   : 231974445056 bytes ( 221228.07 MiB or 216.04 GiB )
GPU RAM required          : 6140243968   bytes ( 5855.79   MiB or 5.72   GiB )
Allocating buffers

Generating plot 1 / 1: 8cd17537dd335785e55144decd78cf7e91bc710564780444d595dfdfff406445
Plot temporary file: -d=0/plot-k32-c05-2023-09-24-11-32-8cd17537dd335785e55144decd78cf7e91bc710564780444d595dfdfff406445.plot.tmp

Fatal Error:
Failed to open plot file with error: 3
BrandtH22 commented 9 months ago

Hey @MichaelFolder , have you tried running the command without the '=' ? ex. bladebit\bladebit_cuda -t 24 -z 5 -f [REDACTED] -c [REDACTED] -m cudaplot -d 0 A:\

(note - I have redacted the farmer and pool information from your comment for privacy reasons. While no one can steal your funds with that information that could use it to monitor your farming activity and rewards)

MichaelFolder commented 9 months ago

Yes, it works, as I already wrote in the UPD. Thanks. Anyway need to fix this help information. This confuses too many users.