File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,8 @@ export CHIAPOS_MAX_CUDA_DEVICES=1
1717```
1818For 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+
2022Alternatively you can set ` CUDA_VISIBLE_DEVICES ` to a list of devices to use:
2123```
2224export CUDA_VISIBLE_DEVICES=1,2
@@ -27,6 +29,17 @@ Note: `CUDA_VISIBLE_DEVICES` applies to all CUDA applications.
2729
2830Note: 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
3245To reduce RAM usage or increase the max number of cores used you can tune environment variable:
You can’t perform that action at this time.
0 commit comments