summaryrefslogtreecommitdiffstats
path: root/xmrstak/backend/nvidia/config.tpl
diff options
context:
space:
mode:
authorfireice-uk <fireice-uk@users.noreply.github.com>2017-12-07 21:18:26 +0000
committerGitHub <noreply@github.com>2017-12-07 21:18:26 +0000
commit28fc6b475668041bd12f21dd2eec798dbb388111 (patch)
treeaede8a17283a2aabcece02ed63e3a16569edb0b6 /xmrstak/backend/nvidia/config.tpl
parent035c824258f678a6865c69ef1a8b769549937662 (diff)
parent4dca64c1a9ffcb506ad81720951f7536b70e394e (diff)
downloadxmr-stak-28fc6b475668041bd12f21dd2eec798dbb388111.zip
xmr-stak-28fc6b475668041bd12f21dd2eec798dbb388111.tar.gz
Merge pull request #313 from psychocrypt/topic-deviceSynchronizeMethod
option to controll gpu synchronization
Diffstat (limited to 'xmrstak/backend/nvidia/config.tpl')
-rw-r--r--xmrstak/backend/nvidia/config.tpl10
1 files changed, 9 insertions, 1 deletions
diff --git a/xmrstak/backend/nvidia/config.tpl b/xmrstak/backend/nvidia/config.tpl
index 99dc023..5479172 100644
--- a/xmrstak/backend/nvidia/config.tpl
+++ b/xmrstak/backend/nvidia/config.tpl
@@ -9,6 +9,12 @@ R"===(
* bsleep - Insert a delay of X microseconds between kernel launches.
* Increase if you want to reduce GPU lag. Recommended setting on GUI systems - 100
* affine_to_cpu - This will affine the thread to a CPU. This can make a GPU miner play along nicer with a CPU miner.
+ * sync_mode - method used to synchronize the device
+ * documentation: http://docs.nvidia.com/cuda/cuda-runtime-api/group__CUDART__DEVICE.html#group__CUDART__DEVICE_1g69e73c7dda3fc05306ae7c811a690fac
+ * 0 = cudaDeviceScheduleAuto
+ * 1 = cudaDeviceScheduleSpin - create a high load on one cpu thread per gpu
+ * 2 = cudaDeviceScheduleYield
+ * 3 = cudaDeviceScheduleBlockingSync (default)
*
* On the first run the miner will look at your system and suggest a basic configuration that will work,
* you can try to tweak it from there to get the best performance.
@@ -16,7 +22,9 @@ R"===(
* A filled out configuration should look like this:
* "gpu_threads_conf" :
* [
- * { "index" : 0, "threads" : 17, "blocks" : 60, "bfactor" : 0, "bsleep" : 0, "affine_to_cpu" : false},
+ * { "index" : 0, "threads" : 17, "blocks" : 60, "bfactor" : 0, "bsleep" : 0,
+ * "affine_to_cpu" : false, "sync_mode" : 3,
+ * },
* ],
*/
OpenPOWER on IntegriCloud