You’re not using the cuPrintf functionality correctly. Review the cuda simple printf sample code for correct usage.