trying cudaDeviceSynchronize() so that progress printed out is actual progress