 	matrixTranspose<<<grid,threads>>>( matrix, pitch, n );
 
 	stop.record();
+	CUDA_CHECK_ERRORS();
 	stop.synchronize();
 
 	cudaFree( matrix );

	matrixMultiply<<<grid,threads>>>( A, B, AB );

	stop.record();
	stop.synchronize();

	return ( stop - start );

	cudaFree( AB );

	stop.record();
	CUDA_CHECK_ERRORS();
	stop.synchronize();

	return ( stop - start );
