#without fopenmp
gcc OMP-hello.c -o OMP-helloOM -fopenmp
./OMP-helloOM
gcc OMP-hello.c -o OMP-hello
./OMP-hello
cat jobs/job2
qsub jobs/job2
qstat
gcc /hpcfs/home/sshpc/OMPCourse/OMP-hello-function.c -o /hpcfs/home/sshpc/OMPCourse/OMP-hello-function -fopenmp
gcc /hpcfs/home/sshpc/OMPCourse/OMP-hello-PR-variable.c -o /hpcfs/home/sshpc/OMPCourse/OMP-hello-PR-variable -fopenmp
gcc /hpcfs/home/sshpc/OMPCourse/OMP-loop-WorkSharing.c -o /hpcfs/home/sshpc/OMPCourse/OMP-loop-WorkSharing -fopenmp
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
gcc OMP-race.c -o OMP-race -fopenmp
qsub jobs/job2
OMP-race.c critical atomic ordered
gcc OMP-sync.c -o OMP-sync -fopenmp
./OMP-sync
gcc OMP-task.c -o OMP-task
./OMP-task
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