Skip to content

NYCU 2023 Fall "Parallel Programming" Final Project

Notifications You must be signed in to change notification settings

lashhw/parallel_ray_tracer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

99 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

NYCU 2023 Fall "Parallel Programming" Final Project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •