Skip to content

Commit

Permalink
CUDA docs
Browse files Browse the repository at this point in the history
  • Loading branch information
madMAx43v3r committed Feb 8, 2025
1 parent 9b8598e commit b62bfb4
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/TODO.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,8 @@
- Web Wallet
- Publish updated whitepaper
- Market + Swap balance formatting
- VNX return pipe timeout
- CUDA settings in GUI
- CUDA settings documentation
- Remote compute support
- Remote compute GUI settings
12 changes: 12 additions & 0 deletions docs/src/content/docs/guides/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,19 @@ Create / Edit file `config/local/Router.json`:
echo true > config/local/timelord
```

#### CUDA Settings

Create / Edit `config/local/cuda.json`:
```
{
"enable": true,
"devices": [0, 1, ...]
}
```
Empty device list = use all devices. Device indices start at 0. CUDA is enabled by default for all devices.

#### Custom home directory

To set a custom storage path for the blockchain DB, wallet files, etc:
```
export MMX_HOME=/your/path/
Expand Down
6 changes: 6 additions & 0 deletions docs/src/content/docs/guides/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ sudo yum install kernel-devel git cmake automake libtool curl gcc gcc-c++ miniup
sudo yum install qt5-qtwebengine-devel # for native GUI
```

Note: To enable CUDA support, CUDA needs to be installed: https://developer.nvidia.com/cuda-downloads

### Building from Source

```
Expand All @@ -52,6 +54,10 @@ cd mmx-node
./update.sh
```

To disable QT GUI: `./update.sh -DDISABLE_QT=1` \
To disable CUDA support: `./update.sh -DDISABLE_CUDA=1` \
These settings are stored, until the next `./clean_all.sh`, so only needs to be specified once. To enable again, set the config to `0`.

To update to latest version:
```
./update.sh
Expand Down
8 changes: 8 additions & 0 deletions docs/src/content/docs/guides/mmx-plotter.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,14 @@ The CPU load to farm SSD plots is already quite high with C0, as such C0 is reco
As such the most efficient SSD plots are k32 C0, with k29 having 8x higher CPU and IOPS load. k32 C3 is equal to k29 C0 in terms of CPU load.
Farming 1024 uncompressed SSD plots is the same compute load as computing a single C10 full proof.

#### Benchmark
Before plotting with compression a benchmark should be performed to check if your system can handle it:
```
mmx_posbench -k 31 -C 10 # to benchmark k31 C10
mmx_posbench --cuda 0 -k 31 -C 10 # to benchmark on CPU
mmx_posbench --devices 1 2 -k 31 -C 10 # to select specific CUDA devices (starting at 0)
```

## Creating Plots
To create plots you will need a Farmer Public Key, and optionally a PlotNFT contract address (for NFT plots). To get the Farmer Public Key, see `mmx wallet keys` or go to the `Info` tab under the wallet in the GUI.
For PlotNFT contract address, see [Pooling](../../software/cli-commands/#pooling).
Expand Down

0 comments on commit b62bfb4

Please sign in to comment.