use multiprocessing module to determine num_threads to avoid openblas segfault with paralle interpreter
use multiprocessing module to determine num_threads to avoid openblas segfault with paralle interpreter

jiumem/cgt,rohanraja/cgt_distributed,RichardWarfield/cgt,animesh-garg/cgt,nickjhay/cgt,jiumem/cgt,rohanraja/cgt_distributed,rohanraja/cgt_distributed,dementrock/cgt,nickjhay/cgt,bstadie/cgt,rohanraja/cgt_distributed,dementrock/cgt,briancheung/cgt,animesh-garg/cgt,jiumem/cgt,hojonathanho/cgt,bstadie/cgt,RichardWarfield/cgt,briancheung/cgt,animesh-garg/cgt,dementrock/cgt,briancheung/cgt,hojonathanho/cgt,bstadie/cgt,nickjhay/cgt,hojonathanho/cgt,RichardWarfield/cgt