SlideServe
Menu
Préférences
© SlideServe · v2026

Constant Memory

chessa avatar
4 diapositives · 194 Views · Oct 03, 2014

Constant memory is a specialized memory type in NVIDIA hardware, providing 64 KB of read-only storage accessible by the processor. It is stored in DRAM but can be cached, making it ideal for frequently read data. You can define global variables using `__constant__` and copy data into constant memory from the main memory using `cudaMemcpyToSymbol()`. This guide illustrates how to use constant memory effectively in your kernels with practical examples in CUDA.

Constant Memory - slide 1
01 / 4Constant Memory
1 / 17

Télécharger la présentation

Constant Memory
Une image / un lien ci-dessous est fourni (tel quel) pour télécharger la présentation

Politique de téléchargement : le contenu du site vous est fourni TEL QUEL pour votre information et votre usage personnel ; il ne peut être vendu, concédé sous licence ni partagé sur d’autres sites sans l’accord de son auteur.Le contenu vous est fourni TEL QUEL, pour votre information et votre usage personnel uniquement. Téléchargez la présentation en cliquant sur ce lien. Lors du téléchargement, si vous ne parvenez pas à télécharger une présentation, l’éditeur a peut-être supprimé le fichier de son serveur.Pendant le téléchargement, si vous ne parvenez pas à obtenir une présentation, le fichier a peut-être été supprimé par l’éditeur.

F I N

Plus de contenu associé

Transcription de la présentation
  1. Constant Memory

  2. Constant Memory • NVIDIA hardware provides 64 Kb of constant memory • Read-only by processor • Stored in DRAM but can be cached • Can be useful if something is read repeatedly by the processor

  3. Constant Memory • Define “global” variable with __constant__: __constant__ c_array[N]; • Copy data into the constant memory from main cudaMemcpyToSymbol(c_array, source, size); • Use variable in your kernel

  4. Class Example • Example in class with GA