Skip to content

Commit

Permalink
make cudaminer *not* crash if it finds a Compute 5.0 part like Maxwell
Browse files Browse the repository at this point in the history
  • Loading branch information
cbuchner1 committed Feb 14, 2014
1 parent 9eb44d0 commit d1e7f2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion salsa_kernel.cu
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ KernelInterface *Best_Kernel_Heuristics(cudaDeviceProp *props)
if (opt_algo == ALGO_SCRYPT || (opt_algo == ALGO_SCRYPT_JANE && N <= 8192))
{
// high register count kernels (scrypt, low N-factor scrypt-jane)
if (props->major == 3 && props->minor == 5)
if (props->major > 3 || (props->major == 3 && props->minor == 5))
kernel = new NV2Kernel();
else if (props->major == 3 && props->minor == 0)
kernel = new NVKernel();
Expand Down

0 comments on commit d1e7f2b

Please sign in to comment.