OpenMP_Examples

OpenMP_Examples - OpenMP Examples OpenMP Submitting Jobs...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: OpenMP Examples OpenMP Submitting Jobs and compiling Accessing Hogwarts Accessing You You access the Hogwarts cluster through the head node Dumbledore. the UserID@dumbledore.cc.gatech.edu ssh Simple Example Code Simple int main(int argc, char* argv) { #pragma omp parallel printf(“Hello, world!\n” return 0; } Compiling Compiling gcc –fopenmp example.c –o example.exe Job Submission Job Create a Wrapper Script to run “example.exe” I will call it “exampleWrapper.sh” #PBS -q class #PBS -l nodes=1 #PBS -l walltime=00:05:00 #PBS -N MyJobName ./myprog arg1 arg2 arg3 ./myprog Call using Call qsub ./exampleWrapper.sh Running an Interactive Job Running qsub -I -q class -l nodes=1 qsub ./example.exe ./example.exe For More Instructions For <http://support.cc.gatech.edu/facilities/inst ructional-labs/how-to-access-thehogwarts-cluster> ...
View Full Document

Ask a homework question - tutors are online