 	int i, j;
 	float* output;
 	Matrix MatrixCA, MatrixCA_line, output_chunk;
-	Matrix MatrixAp, tmp_MatrixAp;
+	Matrix MatrixAp, MatrixAp_tmp;
 
 
 #if DEBUG == 2

	blocksize = 100;

#if MODE == 1
	Matrix device_MatrixAp, device_MatrixCA, device_state_read, device_state_write, device_tmp_state, device_output_chunk_read, device_output_chunk_write, device_tmp_output_chunk;

	device_MatrixCA = m_new(blocksize, MatrixA.cols);
	device_output_chunk_read = m_new(blocksize,1);

	dim3 dimBlockA(1, 1);
	dim3 dimGridA(state.cols / dimBlockA.x, MatrixAp.rows / dimBlockA.y);
#else
	Matrix state_tmp;
#endif

	for(i = 0; i < samples;) {
