SlideServe
Menu
Préférences
© SlideServe · v2026

Cellular Automata

osman avatar
13 diapositives · 259 Views · Aug 20, 2014

Semester Project for Parallel Computing. Mid Defense. Cellular Automata. Group Members: Bibrak Qamar Jahanzeb Maqbool Muhammad Imran Bilawal Sarwar Mehreen Nadeem. Project Description. We have chosen 'Game of Life' and 'Fish and Shark Problem' .

Cellular Automata - slide 1
01 / 13Cellular Automata
1 / 17

Télécharger la présentation

Cellular Automata
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. Semester Project for Parallel Computing Mid Defense Cellular Automata Group Members: Bibrak Qamar Jahanzeb Maqbool Muhammad Imran Bilawal Sarwar Mehreen Nadeem

  2. Project Description • We have chosen 'Game of Life' and 'Fish and Shark Problem' . • We are using CUDA to implement these simulations as they are not only compute intensive but also best fits in the CUDA paradigm, for having many threads. • Work Completed • Implementation Game of Life on CUDA is completed • Implementation Fish and Shark on CUDA is completed

  3. Game of Life Kernel Host memory = NxNxsizeof(int) one array Device memory = NxNxsizeof(int) two arrays

  4. Implementation Game of Life in CUDA using OpenGL Initialized the grid

  5. After 700 generations

  6. Fish and Shark Kernel

  7. #define fishes 0 • #define sharks 1 • #define fish_breed 2 • #define shark_breed 3 ----------------------------------------------------------------------------- • int FS_Data[4]; • FS_Data[fishes] = 0; // fishes • FS_Data[sharks] = 0; // sharks • FS_Data[fish_breed] = 0; // fishes breed • FS_Data[shark_breed] = 0; // sharks breed Good use of registers ( with block size = 256, compute capability = 1.1) nvcc --ptxas-options=-v shows registers used ptxas info : Used 10 registers, 8+16 bytes smem, 60 bytes cmem[1]

  8. Yellow = Shark • Implementation “Fish and Shark “ on CUDA is completed Red = Fish Black = Dead Initialized the grid

  9. After 1263 generations

  10. Remaining Work • Using a new technique MPI + CUDA • We intend to use MPJ + JCUDA • We have successfully run JCUDA program on linux and windows, and have merged both MPJ and JCUDA.