CUDA tutorial/fr: Difference between revisions

Created page with "== Stratégies usuelles de programmation == * Constant memory also resides in DRAM - much slower access than shared memory ** MAIS, elle est cachée !!! ** highly efficient ac..."
(Created page with "== Bande passante == * Always keep CUDA bandwidth limitations in mind when changing your code * Know the theoretical peak bandwidth of the various data links * Count bytes rea...")
(Created page with "== Stratégies usuelles de programmation == * Constant memory also resides in DRAM - much slower access than shared memory ** MAIS, elle est cachée !!! ** highly efficient ac...")
Line 180: Line 180:
* Utilize the various memory spaces depending on the situation: global, shared, constant
* Utilize the various memory spaces depending on the situation: global, shared, constant


== Common GPU programming strategies ==
== Stratégies usuelles de programmation ==
* Constant memory also resides in DRAM - much slower access than shared memory
* Constant memory also resides in DRAM - much slower access than shared memory
** BUT, it’s cached !!!
** MAIS, elle est cachée !!!
** highly efficient access for read-only, broadcast
** highly efficient access for read-only, broadcast
* Carefully divide data acording to access patterns:
* Carefully divide data acording to access patterns:
** read-only:   constant memory (very fast if in cache)
** read-only:   constant memory (très rapide si dans la cache)
** read/write within block: shared memory (very fast)
** read/write dans le bloc : mémoire partagée (très rapide)
** read/write within thread: registers (very fast)
** read/write dans le fil : registres (très rapide)
** read/write input/results: global memory (very slow)
** read/write en entrèe/résultats : mémoire globale (très lente)
rsnt_translations
56,430

edits