 	if (cudaStat != cudaSuccess) {
 		printf("Error while allocation device space\n");
 		printf("for onesVec in rowSum function.\n");
-		exir(1);
+		exit(1);
 	}
 	
 	dim3 onesBlock(blocksize,1);

/* --- SUBJECT TO CHANGE; TESTING STAGE --- */	
void squareMatrix(double *mat, int m, int n);
__global__ void squareElement(double *mat, int size);
void rowSum(cublasHandle_t handle, double *mat, int m, int n, double *sumMat);
/* --- END SUBJECT TO CHANGE AREA --- */



	double a = 1.0;
	double b = 0.0;

	cublasStat = cublasDgemv(handle, CUBLAS_OP_N, m, n, 
							&a, mat, n, onesVec, 1, 
							&b, sum, 1);

