Removed extra and unnecessary operations from the runCuda function.