Skip to content

Commit

Permalink
Fixed custom device affinity not set
Browse files Browse the repository at this point in the history
  • Loading branch information
lwYeo committed Oct 31, 2018
1 parent e445435 commit db5d915
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions SoliditySHA3Miner/Config.cs
Original file line number Diff line number Diff line change
Expand Up @@ -156,13 +156,13 @@ private void SetCpuDevices(uint[] iCpuIDs)
PrepareCpuDeviceList();

for (int i = 0; i < cpuDevices.Length; i++)
cpuDevices[i].AllowDevice = iCpuIDs.Any(id => id.Equals(i));
cpuDevices[i].AllowDevice = iCpuIDs.Any(id => id == i);
}

private void SetAmdDevices(uint[] iAmdDevices)
{
for (uint i = 0; i < amdDevices.Length; i++)
amdDevices[i].AllowDevice = iAmdDevices.Any(id => id.Equals(i));
amdDevices[i].AllowDevice = iAmdDevices.Any(id => id == i);
}

private void SetAmdIntensities(string[] sAmdIntensities)
Expand Down Expand Up @@ -192,7 +192,7 @@ private void SetIntelIntensities(string[] sIntelIntensities)
private void SetCudaDevices(uint[] iCudaDevices)
{
for (uint i = 0; i < cudaDevices.Length; i++)
cudaDevices[i].AllowDevice = iCudaDevices.Any(id => id.Equals(i));
cudaDevices[i].AllowDevice = iCudaDevices.Any(id => id == i);
}

private void SetCudaIntensities(string[] sCudaIntensities)
Expand Down

0 comments on commit db5d915

Please sign in to comment.