summarylogtreecommitdiffstats
path: root/set_num_threads.patch
diff options
context:
space:
mode:
authorMichel Zou2019-06-12 07:16:20 +0200
committerMichel Zou2019-06-12 07:16:20 +0200
commit60183b8775b4d6fd31ec884be8d980439184797e (patch)
tree2d477eb769ed8da7f64756555e4f542b0dfc49f2 /set_num_threads.patch
parenta6be59589ad2eb1fd654ef1c1984f6d17d1a1cc6 (diff)
downloadaur-60183b8775b4d6fd31ec884be8d980439184797e.tar.gz
openblas_set_num_threads
Diffstat (limited to 'set_num_threads.patch')
-rw-r--r--set_num_threads.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/set_num_threads.patch b/set_num_threads.patch
new file mode 100644
index 000000000000..861267e592ec
--- /dev/null
+++ b/set_num_threads.patch
@@ -0,0 +1,12 @@
+diff --git a/src/disable_threading.cpp b/src/disable_threading.cpp
+index e3be7ff..94c645a 100644
+--- a/src/disable_threading.cpp
++++ b/src/disable_threading.cpp
+@@ -36,6 +36,7 @@
+ extern "C" {
+ // This function is private in openblas
+ int goto_get_num_procs(void);
++void openblas_set_num_threads(int num_threads);
+ }
+ #endif
+