Browse Source

Merge pull request #25 from dreambottle/master

Fixed --cuda-devices always selecting gpu 0 bug
cl-refactor
Genoil 9 years ago
parent
commit
8cc5350543
  1. 8
      ethminer/MinerAux.h

8
ethminer/MinerAux.h

@ -243,8 +243,9 @@ public:
{ {
try try
{ {
m_openclDevices[m_openclDeviceCount++] = stol(argv[++i]); m_openclDevices[m_openclDeviceCount] = stol(argv[++i]);
} ++m_openclDeviceCount;
}
catch (...) catch (...)
{ {
i--; i--;
@ -286,7 +287,8 @@ public:
{ {
try try
{ {
m_cudaDevices[m_cudaDeviceCount++] = stol(argv[++i]); m_cudaDevices[m_cudaDeviceCount] = stol(argv[++i]);
++m_cudaDeviceCount;
} }
catch (...) catch (...)
{ {

Loading…
Cancel
Save