diff options
author | psychocrypt <psychocryptHPC@gmail.com> | 2018-02-12 20:39:49 +0100 |
---|---|---|
committer | psychocrypt <psychocryptHPC@gmail.com> | 2018-02-19 22:13:49 +0100 |
commit | cff6b6cbfbb3da44d85753885466de5122e20472 (patch) | |
tree | f08c352ae4261825dca47635c88b8e4a08d67bb7 /xmrstak/backend/amd/autoAdjust.hpp | |
parent | f785481bb7c1fb887a65a0b19c3e453904bb5474 (diff) | |
download | xmr-stak-cff6b6cbfbb3da44d85753885466de5122e20472.zip xmr-stak-cff6b6cbfbb3da44d85753885466de5122e20472.tar.gz |
add OpenCL compatibility mode
- add new option `comp_mode` to the amd config
- disable `if guards` within opencl kernel if `comp_mode : false`
Diffstat (limited to 'xmrstak/backend/amd/autoAdjust.hpp')
-rw-r--r-- | xmrstak/backend/amd/autoAdjust.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xmrstak/backend/amd/autoAdjust.hpp b/xmrstak/backend/amd/autoAdjust.hpp index b88d3ee..8d60b94 100644 --- a/xmrstak/backend/amd/autoAdjust.hpp +++ b/xmrstak/backend/amd/autoAdjust.hpp @@ -143,7 +143,8 @@ private: // set 8 threads per block (this is a good value for the most gpus) conf += std::string(" { \"index\" : ") + std::to_string(ctx.deviceIdx) + ",\n" + " \"intensity\" : " + std::to_string(intensity) + ", \"worksize\" : " + std::to_string(8) + ",\n" + - " \"affine_to_cpu\" : false, \"strided_index\" : 1, \"mem_chunk\" : 4\n" + " \"affine_to_cpu\" : false, \"strided_index\" : 1, \"mem_chunk\" : 4,\n" + " \"comp_mode\" : true\n" + " },\n"; } else |