Skip to content

Commit

Permalink
Fix slow start in multi gpu-rigs
Browse files Browse the repository at this point in the history
Without this quick fx some gpu's use a long time to start.
  • Loading branch information
sp-hash committed May 3, 2018
1 parent 61a32b3 commit 265ab57
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion x16r/x16r.cu
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ extern "C" int scanhash_x16r(int thr_id, struct work* work, uint32_t max_nonce,
CUDA_CALL_OR_RET_X(cudaMalloc(&d_hash[thr_id], (size_t) 64 * throughput), 0);

cuda_check_cpu_init(thr_id, throughput);

sleep(2);
init[thr_id] = true;
}

Expand Down
2 changes: 1 addition & 1 deletion x16r/x16s.cu
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ extern "C" int scanhash_x16s(int thr_id, struct work* work, uint32_t max_nonce,
CUDA_CALL_OR_RET_X(cudaMalloc(&d_hash[thr_id], (size_t) 64 * throughput), 0);

cuda_check_cpu_init(thr_id, throughput);

sleep(2);
init[thr_id] = true;
}

Expand Down

0 comments on commit 265ab57

Please sign in to comment.