Skip to content

Parallel Programming Final Project Fall 2023 @ NYCU

Notifications You must be signed in to change notification settings

michael861227/Parallel_Ray_Tracer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Parallel Ray Tracer

Project Report

Presentation Slides


Build

$ make

Prerequisite for MPI

0. Initial Setting

$ mkdir -p ~/.ssh
$ ssh-keygen -t rsa # Leave all empty

1. Copy the config to ~/.ssh/config

$ cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys

2. Enter pp2 to pp10

ssh pp2
ssh pp3
.
.
.
ssh pp10

3. Maintain consistency by copying the data from the .ssh directory, ensuring that the keys on each computer are uniform.

$ parallel-scp -A -h host.txt -r ~/.ssh ~

4. Ensure SSH access to another computer without requiring a password.


Execute Each Programming Model

SIMD

$ time ./simd_exe

OpenMP

$ time ./openmp_exe

MPI

$ parallel-scp -h host.txt mpi_exe ~
$ time mpirun -np 8 --hostfile host.txt ./mpi_exe

CUDA Mega

$ time ./cuda_b_exe

CUDA Split

$ time ./cuda_c_exe

About

Parallel Programming Final Project Fall 2023 @ NYCU

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 79.0%
  • Cuda 12.6%
  • C 7.8%
  • Makefile 0.6%