 	cudaFree( AB );
 
 	stop.record();
+	CUDA_CHECK_ERRORS();
 	stop.synchronize();
 
 	return ( stop - start );

	matrixTranspose<<<grid,threads>>>( matrix, pitch, n );

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

	cudaFree( matrix );

	matrixTranspose<<<grid,threads>>>( matrix );

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

	return ( stop - start );
