diff options
Diffstat (limited to 'backend/amd')
-rw-r--r-- | backend/amd/autoAdjust.hpp | 2 | ||||
-rw-r--r-- | backend/amd/config.tpl | 7 |
2 files changed, 6 insertions, 3 deletions
diff --git a/backend/amd/autoAdjust.hpp b/backend/amd/autoAdjust.hpp index fd9ea94..de67456 100644 --- a/backend/amd/autoAdjust.hpp +++ b/backend/amd/autoAdjust.hpp @@ -80,7 +80,6 @@ private: configTpl.set( std::string(tpl) ); std::string conf; - conf += std::string("\"gpu_threads_conf\" :\n[\n"); int i = 0; for(auto& ctx : devVec) { @@ -97,7 +96,6 @@ private: " },\n"; ++i; } - conf += std::string("],\n\n"); configTpl.replace("PLATFORMINDEX",std::to_string(platformIndex)); configTpl.replace("NUMGPUS",std::to_string(devVec.size())); diff --git a/backend/amd/config.tpl b/backend/amd/config.tpl index 6d08730..b8b6dc4 100644 --- a/backend/amd/config.tpl +++ b/backend/amd/config.tpl @@ -11,10 +11,15 @@ R"===( * intensity - Number of parallel GPU threads (nothing to do with CPU threads) * worksize - Number of local GPU threads (nothing to do with CPU threads) * affine_to_cpu - This will affine the thread to a CPU. This can make a GPU miner play along nicer with a CPU miner. + * "gpu_threads_conf" : + * [ + * { "index" : 0, "intensity" : 1000, "worksize" : 8, "affine_to_cpu" : false }, + * ], */ - +"gpu_threads_conf" : [ GPUCONFIG +], /* * Platform index. This will be 0 unless you have different OpenCL platform - eg. AMD and Intel. |