Ask Your Question
3

Can previous calls to a CUDA kernel affect a subsequent kernel call?

asked 2023-06-18 13:50:13 +0000

lakamha gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2023-06-18 14:10:02 +0000

huitzilopochtli gravatar image

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.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-06-18 13:50:13 +0000

Seen: 8 times

Last updated: Jun 18 '23