Skip to content

Commit a5feea6

Browse files
authored
make BLAS3_MEM_ALLOC_THRESHOLD configurable on non-Windows
1 parent dc8e4e1 commit a5feea6

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

cmake/system.cmake

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,13 @@ else ()
323323
set(CCOMMON_OPT "${CCOMMON_OPT} -DMAX_STACK_ALLOC=2048")
324324
endif ()
325325
endif ()
326-
326+
if (NOT ${CMAKE_SYSTEM_NAME} STREQUAL "Windows")
327+
if (DEFINED BLAS3_MEM_ALLOC_THRESHOLD)
328+
if (NOT ${BLAS3_MEM_ALLOC_THRESHOLD} EQUAL 32)
329+
set(CCOMMON_OPT "${CCOMMON_OPT} -DBLAS3_MEM_ALLOC_THRESHOLD=${BLAS3_MEM_ALLOC_THRESHOLD}")
330+
endif()
331+
endif()
332+
endif()
327333
if (DEFINED LIBNAMESUFFIX)
328334
set(LIBPREFIX "libopenblas_${LIBNAMESUFFIX}")
329335
else ()

0 commit comments

Comments
 (0)