projects
/
GPU.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
TP Histogramme.
[GPU.git]
/
WCudaMSE
/
Student_Cuda
/
src
/
cpp
/
core
/
01b_AddVector
/
AddVector.cu
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
(file)
--- 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 };