commit
9d7b6ebbf3
2 changed files with 5 additions and 4 deletions
|
@ -274,6 +274,7 @@ bool CudaHasher::buildThreadData() {
|
|||
thread_data.threadId = threadId;
|
||||
|
||||
cudaStream_t stream;
|
||||
cudaSetDevice(device->cudaIndex);
|
||||
device->error = cudaStreamCreate(&stream);
|
||||
if(device->error != cudaSuccess) {
|
||||
LOG("Error running kernel: (" + to_string(device->error) + ") cannot create cuda stream.");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue