This material is part of the course Practical Introduction to Parallel Programming and meant for educational purposes only.
Implement a small OpenMP program that prints the total number of threads and the rank of the current thread.
Specify the OpenMP environment variables that should be used for running your program (mpirun -x OMP_NUM_THREADS=1 -x ...). Use semicolons to separate multiple variables
mpirun -x OMP_NUM_THREADS=1 -x ...
Specify the command line arguments that should be passed to your program when it is run. Arguments must be given in quotes and separated by commas. Leave this filed empty if you do not want to specify command line arguments.
Example: "1","int","arg=2" is interpreted as three arguments 1, int, and arg=2.
"1","int","arg=2"
1
int
arg=2