Merge pull request #5 from turtlecoin/dev

Dev
This commit is contained in:
Haifa Bogdan Adnan 2019-09-02 12:30:00 +03:00 committed by GitHub
commit 9d7b6ebbf3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 4 deletions

View file

@ -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.");