summaryrefslogtreecommitdiff
path: root/cblas.h
diff options
context:
space:
mode:
Diffstat (limited to 'cblas.h')
-rw-r--r--cblas.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/cblas.h b/cblas.h
index 1a87074d6..4bc5588d8 100644
--- a/cblas.h
+++ b/cblas.h
@@ -25,6 +25,11 @@ char* openblas_get_config(void);
/*Get the CPU corename on runtime.*/
char* openblas_get_corename(void);
+#ifdef OPENBLAS_OS_LINUX
+/* Sets thread affinity for OpenBLAS threads. `thread_idx` is in [0, openblas_get_num_threads()-1]. */
+int openblas_setaffinity(int thread_idx, size_t cpusetsize, cpu_set_t* cpu_set);
+#endif
+
/* Get the parallelization type which is used by OpenBLAS */
int openblas_get_parallel(void);
/* OpenBLAS is compiled for sequential use */