fix for rounding numcpus to next power of 2