printf1 [CUDA] printf not working 1) The first way I tried to resolve my problem: cudaDeviceSynchronize() Some posts and blogs suggest using cudaDeviceSynchronize() as a solution for not working printf() in CUDA [1][2]. The point of their suggestion is that the host code* is over before receiving printf() message from the device codes**. So, before ending the host code, by synchronizing the device codes (cudaDeviceSynchronize), .. 2021. 1. 5. 이전 1 다음