1 2 3 4 5 6 7 8
program main if (omp_get_max_threads() .eq. 2) then stop 0 else print *, 'Max threads is', omp_get_max_threads(), 'not 2.' stop 1 endif end program main