X-Git-Url: http://git.euphorik.ch/?p=GPU.git;a=blobdiff_plain;f=WCudaMSE%2FStudent_Cuda%2Fsrc%2Fcpp%2Fcore%2F01b_AddVector%2FAddVector.cu;fp=WCudaMSE%2FStudent_Cuda%2Fsrc%2Fcpp%2Fcore%2F01b_AddVector%2FAddVector.cu;h=02f0cc8a20b9b2a5d04df2ce9c3caae1b9322d73;hp=1a5b6ebbcb7a98a8935335ef8bc6610d120813c6;hb=ee885ed84f2ff3d5fb1e7ac41fa3c8879314ee36;hpb=fba9c1cf9ca6c4064f01cae73145fd3286f4a316 diff --git a/WCudaMSE/Student_Cuda/src/cpp/core/01b_AddVector/AddVector.cu b/WCudaMSE/Student_Cuda/src/cpp/core/01b_AddVector/AddVector.cu index 1a5b6eb..02f0cc8 100644 --- a/WCudaMSE/Student_Cuda/src/cpp/core/01b_AddVector/AddVector.cu +++ b/WCudaMSE/Student_Cuda/src/cpp/core/01b_AddVector/AddVector.cu @@ -31,6 +31,8 @@ __device__ float work(float v1, float v2) bool addVectors() { + cout << "addVectors() ..." << endl; + // Inputs (passé en paramètre de la fonction dans un cas général). float v1[] = { 1, 2, 3 }; float v2[] = { 10, 20, 30 };