/*Set the number of threads on runtime.*/ voidopenblas_set_num_threads(intnum_threads); voidgoto_set_num_threads(intnum_threads); intopenblas_set_num_threads_local(intnum_threads); /*Get the number of threads on runtime.*/ intopenblas_get_num_threads(void); ...
M2/M2/usr-host/include/fflas-ffpack/fflas/fflas_ftrsm_src.inl:279:27: error: ‘openblas_set_num_threads’ was not declared in this scope; did you mean ‘omp_set_num_threads’? 279 | openblas_set_num_threads(__FFLASFFPACK_OPENBLAS_NUM_THREADS); | ~~~^~~~ | omp_set_num_thread...
Please use "void openblas_set_num_threads(int num_threads);" extern "C" void openblas_set_num_threads(int num_threads); openblas_set_num_threads(3); In OpenBLAS, there is a global variable to store the number of threads. Then, OpenBLAS splits the work(e.g. gemm) based on this glo...