Yes, previous calls to a CUDA kernel can affect a subsequent kernel call. This is because the CUDA kernel runs on the GPU and shares memory with other CUDA kernels running on the same GPU. Therefore, if a previous kernel call changes the memory state on the GPU, it can affect the subsequent kernel call if it uses the same memory location. To avoid this, it is important to manage data transfer and memory allocation properly and synchronize the kernels if necessary.
Asked: 2023-06-18 13:50:13 +0000
Seen: 8 times
Last updated: Jun 18 '23