Skip to content

Commit

Permalink
Fixed core phase 2 for compute capability < 3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
tsiv committed Sep 23, 2014
1 parent 745383d commit c874975
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cryptonight/cuda_cryptonight_core.cu
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,9 @@ __global__ void cryptonight_core_gpu_phase2(int threads, int bfactor, int partid

__syncthreads();

int thread = (blockDim.x * blockIdx.x + threadIdx.x) >> 2;

#if __CUDA_ARCH__ >= 300

int thread = (blockDim.x * blockIdx.x + threadIdx.x) >> 2;
int sub = threadIdx.x & 3;

if (thread < threads)
Expand Down Expand Up @@ -149,6 +148,8 @@ __global__ void cryptonight_core_gpu_phase2(int threads, int bfactor, int partid

#else // __CUDA_ARCH__ < 300

int thread = blockDim.x * blockIdx.x + threadIdx.x;

if (thread < threads)
{
int i, j;
Expand Down

0 comments on commit c874975

Please sign in to comment.