Hardcode num_threads for parallel OpenMP loop.