获取运行时的线程数。
int BlasGetNumThreads(void)
返回运行时的线程数,最大值为CPU核数。
#include "kblas.h"
int nthreads = BlasGetNumThreads(); // 获取运行时的线程数