diff options
author | psychocrypt <psychocrypt@users.noreply.github.com> | 2017-11-14 22:13:24 +0100 |
---|---|---|
committer | psychocrypt <psychocrypt@users.noreply.github.com> | 2017-11-15 16:29:41 +0100 |
commit | 70737c8d1a909c6d08f6e38e069566ae8af64917 (patch) | |
tree | 50df29d60399e7843a69d343fddc1efc00e11d87 /xmrstak/backend/nvidia/minethd.cpp | |
parent | 0659458523671d53e4eddd940ade8ac9f72b1bbe (diff) | |
download | xmr-stak-70737c8d1a909c6d08f6e38e069566ae8af64917.zip xmr-stak-70737c8d1a909c6d08f6e38e069566ae8af64917.tar.gz |
check gpu architecture
- check if the gpu architecture is supported by the compiled miner binary
- remove not supported gpus from the auto suggestion
- disallow the selection of a not supported gpu by hand tuning the config
Diffstat (limited to 'xmrstak/backend/nvidia/minethd.cpp')
-rw-r--r-- | xmrstak/backend/nvidia/minethd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmrstak/backend/nvidia/minethd.cpp b/xmrstak/backend/nvidia/minethd.cpp index a1cafa7..a4c0e7a 100644 --- a/xmrstak/backend/nvidia/minethd.cpp +++ b/xmrstak/backend/nvidia/minethd.cpp @@ -216,7 +216,7 @@ void minethd::work_main() globalStates::inst().iConsumeCnt++; - if(/*cuda_get_deviceinfo(&ctx) != 1 ||*/ cryptonight_extra_cpu_init(&ctx) != 1) + if(cuda_get_deviceinfo(&ctx) != 0 || cryptonight_extra_cpu_init(&ctx) != 1) { printer::inst()->print_msg(L0, "Setup failed for GPU %d. Exitting.\n", (int)iThreadNo); std::exit(0); |