Add back to print out intermediate result for shared memory improvement.