Skip to content

Commit d5480ab

Browse files
authored
Update README.md
1 parent 8b52939 commit d5480ab

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

chiapos/README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ export CHIAPOS_MAX_CUDA_DEVICES=1
1717
```
1818
For example if you have a fast and a slow GPU, set `CHIAPOS_MAX_CUDA_DEVICES=1`, to only use the fast one.
1919

20+
The same works for OpenCL via `CHIAPOS_MAX_OPENCL_DEVICES`.
21+
2022
Alternatively you can set `CUDA_VISIBLE_DEVICES` to a list of devices to use:
2123
```
2224
export CUDA_VISIBLE_DEVICES=1,2
@@ -27,6 +29,17 @@ Note: `CUDA_VISIBLE_DEVICES` applies to all CUDA applications.
2729

2830
Note: When changing environment variables you need to restart the Chia daemon for it to take effect: `./chia.bin stop all -d`
2931

32+
### Select OpenCL Platform
33+
34+
If you have more than one OpenCL platform, like Intel + AMD, you have to select one to be used for farming.
35+
For example to use AMD:
36+
```
37+
export CHIAPOS_OPENCL_PLATFORM="AMD Accelerated Parallel Processing"
38+
```
39+
The name of your platform can be found using `clinfo`, see `Platform Name`.
40+
41+
CUDA is automatically used for Nvidia GPUs when available, there is no need to disable OpenCL for Nvidia.
42+
3043
## Limit RAM usage
3144

3245
To reduce RAM usage or increase the max number of cores used you can tune environment variable:

0 commit comments

Comments
 (0)