autocompute (and set) OMP_NUM_THREADS