File tree Expand file tree Collapse file tree 2 files changed +17
-2
lines changed Expand file tree Collapse file tree 2 files changed +17
-2
lines changed Original file line number Diff line number Diff line change @@ -279,7 +279,22 @@ COMMON_PROF = -pg
279
279
280
280
# If you want to enable the experimental BFLOAT16 support
281
281
# BUILD_HALF = 1
282
- #
282
+
283
+
284
+ # Set the thread number threshold beyond which the job array for the threaded level3 BLAS
285
+ # will be allocated on the heap rather than the stack. (This array alone requires
286
+ # NUM_THREADS*NUM_THREADS*128 bytes of memory so should not pose a problem at low cpu
287
+ # counts, but obviously it is not the only item that ends up on the stack.
288
+ # The default value of 32 ensures that the overall requirement is compatible
289
+ # with the default 1MB stacksize imposed by having the Java VM loaded without use
290
+ # of its -Xss parameter.
291
+ # The value of 160 formerly used from about version 0.2.7 until 0.3.10 is easily compatible
292
+ # with the common Linux stacksize of 8MB but will cause crashes with unwary use of the java
293
+ # VM e.g. in Octave or with the java-based libhdfs in numpy or scipy code
294
+ # BLAS3_MEM_ALLOC_THRESHOLD = 160
295
+
296
+
297
+
283
298
# the below is not yet configurable, use cmake if you need to build only select types
284
299
BUILD_SINGLE = 1
285
300
BUILD_DOUBLE = 1
Original file line number Diff line number Diff line change @@ -402,7 +402,7 @@ please https://github.com/xianyi/OpenBLAS/issues/246
402
402
#endif
403
403
404
404
#ifndef BLAS3_MEM_ALLOC_THRESHOLD
405
- #define BLAS3_MEM_ALLOC_THRESHOLD 160
405
+ #define BLAS3_MEM_ALLOC_THRESHOLD 32
406
406
#endif
407
407
408
408
#ifdef QUAD_PRECISION
You can’t perform that action at this time.
0 commit comments