cudaThreadSynchronize() and NPP?

Hi,

is it necessary to use cudaThreadSynchronize() with some functions from NPP? If yes, how and where?
And do I have to deallocate everything in a loop if I rewrite these spaces in every cycle?

Hi,

is it necessary to use cudaThreadSynchronize() with some functions from NPP? If yes, how and where?
And do I have to deallocate everything in a loop if I rewrite these spaces in every cycle?