CUDA bugfix: set cuda device before creating stream
This commit is contained in:
parent
decff308c0
commit
2614322c63
1 changed files with 1 additions and 0 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