CUDA tutorial/fr: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 137: Line 137:
c[blockIdx.x] = a[blockIdx.x] + b[blockIdx.x];
c[blockIdx.x] = a[blockIdx.x] + b[blockIdx.x];
</syntaxhighlight>
</syntaxhighlight>
where blockIdx.x is the unique number identifying a CUDA block. This way each CUDA block adds a value from a[ ] to b[ ].
blockIdx.x est le numéro unique identifiant un bloc CUDA. De cetta manière, chaque bloc CUDA ajoute une valeur de a[ ] à b[ ].
[[File:Cuda-blocks-parallel.png|thumbnail|CUDA blocks-based parallelism. ]]
[[File:Cuda-blocks-parallel.png|thumbnail|Parallélisation basée sur les blocs. ]]


Can we again make some modifications in those triple brackets ?  
Can we again make some modifications in those triple brackets ?  
rsnt_translations
56,430

edits

Navigation menu