From 80f411a347a63243903c290e773ce5008795ed86 Mon Sep 17 00:00:00 2001 From: danikkul Date: Tue, 7 Jan 2025 23:04:45 +0300 Subject: [PATCH] small fix for Q45 --- ANSWERS.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ANSWERS.md b/ANSWERS.md index 8ca9ff6..250edf8 100644 --- a/ANSWERS.md +++ b/ANSWERS.md @@ -2199,9 +2199,8 @@ cudaError_t cudaHostRegister( cudaMallocHost(&aHost , size); cudaStreamCreate(&stream1); cudaStreamCreate(&stream2); -cudaMemcpyAsync(aDev, aHost , size, -cudaMemcpyHostToDevice , stream1); -kernel <<>>(...); +cudaMemcpyAsync(aDev, aHost, size, cudaMemcpyHostToDevice, stream1); +kernel <<>>(...); ``` - Если `cudaDeviceProp::concurrentKernels > 0` устройство может выполнять ядра