X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/book_gpu.git/blobdiff_plain/fc4670d0de6814f682df0ce247905cba40b9d547..1eda0e6e69a2160009bfcb2b86237a544898530d:/BookGPU/Chapters/chapter2/ex2.cu diff --git a/BookGPU/Chapters/chapter2/ex2.cu b/BookGPU/Chapters/chapter2/ex2.cu index 762654c..b27d619 100644 --- a/BookGPU/Chapters/chapter2/ex2.cu +++ b/BookGPU/Chapters/chapter2/ex2.cu @@ -89,12 +89,8 @@ int main( int argc, char** argv) cutilCheckError(cutStopTimer(timer_gpu)); printf("GPU processing time : %f (ms) \n", cutGetTimerValue(timer_gpu)); cutDeleteTimer(timer_gpu); - - cublasGetVector(size,sizeof(double),d_arrayC,1,h_arrayCgpu,1); - printf("cpu dot %e --- gpu dot %e\n",dot,dot_gpu); - cudaFree(d_arrayA); cudaFree(d_arrayB); cudaFree(d_arrayC);