Skip to content

intel-unesp-mcp/sshpc-omp-course

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 

Repository files navigation

sshpc-omp-course

1 hello

#without fopenmp

gcc OMP-hello.c -o OMP-helloOM -fopenmp

./OMP-helloOM

gcc OMP-hello.c -o OMP-hello

./OMP-hello

2 los andes script

cat jobs/job2

qsub jobs/job2

qstat

3 Function

gcc /hpcfs/home/sshpc/OMPCourse/OMP-hello-function.c -o /hpcfs/home/sshpc/OMPCourse/OMP-hello-function -fopenmp

4 Data Sharing Clauses

gcc /hpcfs/home/sshpc/OMPCourse/OMP-hello-PR-variable.c -o /hpcfs/home/sshpc/OMPCourse/OMP-hello-PR-variable -fopenmp

5 loop worksharing

gcc /hpcfs/home/sshpc/OMPCourse/OMP-loop-WorkSharing.c -o /hpcfs/home/sshpc/OMPCourse/OMP-loop-WorkSharing -fopenmp

6 performance comparison

Serial version:​

gcc OMP-matrix-sum.c -o OMP-matrix-sum​

time ./OMP-matrix-sum ​

Parallel version:​

gcc OMP-matrix-sum.c -o OMP-matrix-sumOM -fopenmp​

time ./OMP-matrix-sumOM ​

7 race condition

gcc OMP-race.c -o OMP-race -fopenmp

qsub jobs/job2

8 sycronization

OMP-race.c critical atomic ordered

9 sycronization

gcc OMP-sync.c -o OMP-sync -fopenmp

./OMP-sync

10 task

gcc OMP-task.c -o OMP-task

./OMP-task

11 fibonacci

gcc fib-no-recursion.c -o fib-no-recursion

./fib-no-recursion

gcc fib-no-recursion.c -o fib-no-recursionOM -fopenmp

./fib-no-recursionOM

gcc fib-task.c -o fib-task

./fib-task

gcc fib-task.c -o fib-taskOM -fopenmp

./fib-taskOM

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published