Skip to content
Snippets Groups Projects
Unverified Commit 33120ec4 authored by fireice-uk's avatar fireice-uk Committed by GitHub
Browse files

Merge pull request #1896 from psychocrypt/topic-docuUpdate

update documantion
parents 95a41a30 bf882d44
No related branches found
No related tags found
No related merge requests found
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
* [AMD Backend](#amd-backend) * [AMD Backend](#amd-backend)
* [Choose `intensity` and `worksize`](#choose-intensity-and-worksize) * [Choose `intensity` and `worksize`](#choose-intensity-and-worksize)
* [Add more GPUs](#add-more-gpus) * [Add more GPUs](#add-more-gpus)
* [Two Threads per GPU](two-threads-per-gpu)
* [disable comp_mode](#disable-comp_mode) * [disable comp_mode](#disable-comp_mode)
* [change the scratchpad memory pattern](change-the-scratchpad-memory-pattern) * [change the scratchpad memory pattern](change-the-scratchpad-memory-pattern)
* [Increase Memory Pool](#increase-memory-pool) * [Increase Memory Pool](#increase-memory-pool)
...@@ -55,10 +56,10 @@ To add a new GPU you need to add a new config set to `gpu_threads_conf`. ...@@ -55,10 +56,10 @@ To add a new GPU you need to add a new config set to `gpu_threads_conf`.
"gpu_threads_conf" : "gpu_threads_conf" :
[ [
{ "index" : 0, "threads" : 17, "blocks" : 60, "bfactor" : 0, "bsleep" : 0, { "index" : 0, "threads" : 17, "blocks" : 60, "bfactor" : 0, "bsleep" : 0,
"affine_to_cpu" : false, "sync_mode" : 3, "affine_to_cpu" : false, "sync_mode" : 3, "mem_mode" : 1,
}, },
{ "index" : 1, "threads" : 17, "blocks" : 60, "bfactor" : 0, "bsleep" : 0, { "index" : 1, "threads" : 17, "blocks" : 60, "bfactor" : 0, "bsleep" : 0,
"affine_to_cpu" : false, "sync_mode" : 3, "affine_to_cpu" : false, "sync_mode" : 3, "mem_mode" : 1,
}, },
], ],
``` ```
...@@ -82,11 +83,37 @@ If you are unsure of either GPU or platform index value, you can use `clinfo` to ...@@ -82,11 +83,37 @@ If you are unsure of either GPU or platform index value, you can use `clinfo` to
``` ```
"gpu_threads_conf" : "gpu_threads_conf" :
[ [
{ "index" : 0, "intensity" : 1000, "worksize" : 8, "affine_to_cpu" : false, {
"strided_index" : true, "mem_chunk" : 2, "comp_mode" : true "index" : 0, "intensity" : 1000, "worksize" : 8, "affine_to_cpu" : false,
"strided_index" : true, "mem_chunk" : 2, "unroll" : 8, "comp_mode" : true
}, },
{ "index" : 1, "intensity" : 1000, "worksize" : 8, "affine_to_cpu" : false, {
"strided_index" : true, "mem_chunk" : 2, "comp_mode" : true "index" : 1, "intensity" : 1000, "worksize" : 8, "affine_to_cpu" : false,
"strided_index" : true, "mem_chunk" : 2, "unroll" : 8, "comp_mode" : true
},
],
"platform_index" : 0,
```
### Two Threads per GPU
Some GPUs like AMD Vega can mine faster if two threads are using the same GPU.
Use the auto generated config as base and repeat the config entry for a GPU.
If the attribute `index` is used twice than two threads will use one GPU.
Take care that the required memory usage on the GPU will also double.
Therefore adjust your intensity by hand.
```
"gpu_threads_conf" :
[
{
"index" : 0, "intensity" : 768, "worksize" : 8, "affine_to_cpu" : false,
"strided_index" : true, "mem_chunk" : 2, "unroll" : 8, "comp_mode" : true
},
{
"index" : 0, "intensity" : 768, "worksize" : 8, "affine_to_cpu" : false,
"strided_index" : true, "mem_chunk" : 2, "unroll" : 8, "comp_mode" : true
}, },
], ],
......
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
* [Usage on Windows](#usage-on-windows) * [Usage on Windows](#usage-on-windows)
* [Usage on Linux](#usage-on-linux) * [Usage on Linux](#usage-on-linux)
* [Command Line Options](#command-line-options) * [Command Line Options](#command-line-options)
* [Use different backends](#use-different-backends)
* [HTML and JSON API report configuraton](#html-and-json-api-report-configuraton) * [HTML and JSON API report configuraton](#html-and-json-api-report-configuraton)
## Configurations ## Configurations
...@@ -34,6 +35,33 @@ Note: If the pool is ignoring the option `rig_id` in `pools.txt` to name your wo ...@@ -34,6 +35,33 @@ Note: If the pool is ignoring the option `rig_id` in `pools.txt` to name your wo
The miner allow to overwrite some of the settings via command line options. The miner allow to overwrite some of the settings via command line options.
Run `xmr-stak --help` to show all available command line options. Run `xmr-stak --help` to show all available command line options.
## Use Different Backends
On linux and OSX please add `./` before the binary name `xmr-stak`.
### CPU Only:
```
xmr-stak --noAMD --noNVIDIA
```
### NVIDIA/AMD Only:
The miner will automatically detect if CUDA (for NVIDIA GPUs) or OpenCL (for AMD GPUs) is available.
```
xmr-stak --noCPU
```
**CUDA** is currently not supported. I am currently try to get some performance out it.
### NVIDIA via OpenCL
It is possible to use the OpenCl backend which is originally created for AMD GPUs with NVIDIA GPus.
Some NVIDIA GPUs can reach better performance with this backend.
```
xmr-stak --openCLVendor NVIDIA --noNVIDIA
```
## Docker image usage ## Docker image usage
You can run the Docker image the following way: You can run the Docker image the following way:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment