Don't use multithreading when ncpus is 1