Skip to content

Commit

Permalink
now works with all CUDA versions
Browse files Browse the repository at this point in the history
  • Loading branch information
tpruvot committed Aug 13, 2017
1 parent 5001a0c commit dfdf4b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion skunk/skunk.cu
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ extern "C" int scanhash_skunk(int thr_id, struct work* work, uint32_t max_nonce,
gpulog(LOG_INFO, thr_id, "Intensity set to %g, %u cuda threads", throughput2intensity(throughput), throughput);

skunk_cpu_init(thr_id, throughput);
use_compat_kernels[thr_id] = (cuda_arch[dev_id] < 500 || CUDART_VERSION < 7500 || CUDART_VERSION > 8000);
use_compat_kernels[thr_id] = (cuda_arch[dev_id] < 500);
if (use_compat_kernels[thr_id]) x13_fugue512_cpu_init(thr_id, throughput);

CUDA_CALL_OR_RET_X(cudaMalloc(&d_hash[thr_id], (size_t) 64 * throughput), 0);
Expand Down

0 comments on commit dfdf4b0

Please sign in to comment.