This shows you the differences between two versions of the page.
asc:laboratoare:06 [2025/04/09 09:06] alexandru.bala [Fluxuri nonimplicite] |
asc:laboratoare:06 [2025/04/09 09:11] (current) alexandru.bala [Fluxuri nonimplicite] |
||
---|---|---|---|
Line 237: | Line 237: | ||
<code C> | <code C> | ||
- | result = cudaMemcpyAsync(d_a, a, N, cudaMemcpyHostToDevice, stream1); | + | // num_bytes = N * sizeof (type_a); |
+ | result = cudaMemcpyAsync(d_a, a, num_bytes, cudaMemcpyHostToDevice, stream1); | ||
</code> | </code> | ||