Skip to content

Commit

Permalink
small fix for Q45
Browse files Browse the repository at this point in the history
  • Loading branch information
DanikKul authored and Qurcaivel committed Jan 8, 2025
1 parent d4187f2 commit 80f411a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions ANSWERS.md
Original file line number Diff line number Diff line change
Expand Up @@ -2199,9 +2199,8 @@ cudaError_t cudaHostRegister(
cudaMallocHost(&aHost , size);
cudaStreamCreate(&stream1);
cudaStreamCreate(&stream2);
cudaMemcpyAsync(aDev, aHost , size,
cudaMemcpyHostToDevice , stream1);
kernel <<<grid, block , 0, stream2 >>>(...);
cudaMemcpyAsync(aDev, aHost, size, cudaMemcpyHostToDevice, stream1);
kernel <<<grid, block, 0, stream2>>>(...);
```

- Если `cudaDeviceProp::concurrentKernels > 0` устройство может выполнять ядра
Expand Down

0 comments on commit 80f411a

Please sign in to comment.