Introduced callback to Pthread, Win32 and OpenMP backend

This commit is contained in:
shivammonaka
2024-01-11 18:37:11 +05:30
parent 87f83ebe9c
commit 7102367fde
8 changed files with 337 additions and 204 deletions
+12
View File
@@ -0,0 +1,12 @@
#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 */
void openblas_set_threads_callback_function(openblas_threads_callback callback)
{
openblas_threads_callback_ = callback;
}