Refs #214, #221, #246. Fixed the getrf overflow bug on Windows.

I used a smaller threshold since the stack size is 1MB on windows.
This commit is contained in:
Zhang Xianyi
2013-07-11 03:20:02 +08:00
parent 6df39ad9e7
commit 32d2ca3035
6 changed files with 22 additions and 5 deletions

View File

@@ -45,7 +45,7 @@ double sqrt(double);
//In this case, the recursive getrf_parallel may overflow the stack.
//Instead, use malloc to alloc job_t.
#if MAX_CPU_NUMBER > 90
#if MAX_CPU_NUMBER > GETRF_MEM_ALLOC_THRESHOLD
#define USE_ALLOC_HEAP
#endif