Added CudaSafeCall( ... ) to some unprotected calls.