#! /bin/csh # # runscheds n - run ex1 on size n using different work sharing schedules # set ex = ./ex1 set n = $1 if ($#argv > 1) set ex = $2 foreach sched ("static" "guided" "dynamic,32" "dynamic") echo [prog $ex size $n schedule $sched] setenv OMP_SCHEDULE $sched foreach p (1 2 3 4 5 6 7 8) env OMP_NUM_THREADS=$p $ex $n end end