Autodetect number of CPU cores for softfilter.