Deleted all cudaThreadSynchronize() and thanks Andy for correcting memory checking bug
Merge branch '2.2' of github.com:cudpp/cudpp into 2.2