summaryrefslogtreecommitdiff
path: root/cblas.h
diff options
context:
space:
mode:
authorZhang Xianyi <traits.zhang@gmail.com>2012-12-10 15:49:01 +0800
committerZhang Xianyi <traits.zhang@gmail.com>2012-12-10 15:52:51 +0800
commitbdf8d9411e2e3698c7462a46e813c148c0e8aa98 (patch)
tree7cbc7f508d0c8a55e5f614a2b1d8e916573497eb /cblas.h
parentbb10cb8442f84e76d1140f58b37fa1edc3393972 (diff)
downloadopenblas-bdf8d9411e2e3698c7462a46e813c148c0e8aa98.tar.gz
openblas-bdf8d9411e2e3698c7462a46e813c148c0e8aa98.tar.bz2
openblas-bdf8d9411e2e3698c7462a46e813c148c0e8aa98.zip
Refs #163. Obtain the build configure on runtime.
openblas_get_config function returns the configure string. So far, it supports USE64BITINT, NO_CBLAS, NO_LAPACK, NO_LAPACKE, DYNAMIC_ARCH, NO_AFFINITY. Example: #include <stdio.h> extern char * openblas_get_config(); void main() { printf("%s\n",openblas_get_config()); return; }
Diffstat (limited to 'cblas.h')
-rw-r--r--cblas.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/cblas.h b/cblas.h
index ee8bf08b2..e9664fe79 100644
--- a/cblas.h
+++ b/cblas.h
@@ -13,6 +13,9 @@ extern "C" {
void openblas_set_num_threads(int num_threads);
void goto_set_num_threads(int num_threads);
+/*Get the build configure on runtime.*/
+char* openblas_get_config(void);
+
#define CBLAS_INDEX size_t
enum CBLAS_ORDER {CblasRowMajor=101, CblasColMajor=102};