projects
/
platform
/
upstream
/
openblas.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dd7a650
)
Add CMAKE support for MAX_STACK_ALLOC setting
author
Martin Kroeker
<martin@ruby.chemie.uni-freiburg.de>
Thu, 4 Jun 2020 12:45:31 +0000
(14:45 +0200)
committer
GitHub
<noreply@github.com>
Thu, 4 Jun 2020 12:45:31 +0000
(14:45 +0200)
cmake/system.cmake
patch
|
blob
|
history
diff --git
a/cmake/system.cmake
b/cmake/system.cmake
index
65e5aa5
..
61e73fb
100644
(file)
--- a/
cmake/system.cmake
+++ b/
cmake/system.cmake
@@
-297,6
+297,14
@@
if (USE_SIMPLE_THREADED_LEVEL3)
set(CCOMMON_OPT "${CCOMMON_OPT} -DUSE_SIMPLE_THREADED_LEVEL3")
endif ()
+if (DEFINED MAX_STACK_ALLOC)
+if (NOT ${MAX_STACK_ALLOC} EQUAL 0)
+set(CCOMMON_OPT "${CCOMMON_OPT} -DMAX_STACK_ALLOC=${MAX_STACK_ALLOC}")
+endif ()
+else ()
+set(CCOMMON_OPT "${CCOMMON_OPT} -DMAX_STACK_ALLOC=2048")
+endif ()
+
if (DEFINED LIBNAMESUFFIX)
set(LIBPREFIX "libopenblas_${LIBNAMESUFFIX}")
else ()