mirror of https://github.com/xianyi/OpenBLAS.git
14 lines
434 B
C
14 lines
434 B
C
#include "common.h"
|
|
|
|
/* global variable to change threading backend from openblas-managed to caller-managed */
|
|
openblas_threads_callback openblas_threads_callback_ = 0;
|
|
|
|
/* non-threadsafe function should be called before any other
|
|
openblas function to change how threads are managed */
|
|
|
|
OPENBLAS_EXPORT
|
|
void openblas_set_threads_callback_function(openblas_threads_callback callback)
|
|
{
|
|
openblas_threads_callback_ = callback;
|
|
}
|