Add configuration option for BUFFER_SIZE
authorMartin Kroeker <martin@ruby.chemie.uni-freiburg.de>
Sun, 9 Feb 2020 22:28:04 +0000 (23:28 +0100)
committerGitHub <noreply@github.com>
Sun, 9 Feb 2020 22:28:04 +0000 (23:28 +0100)
Makefile.rule

index 21b7e13..724a60e 100644 (file)
@@ -97,6 +97,15 @@ VERSION = 0.3.9.dev
 # they need to wait for the preceding API calls to finish or risk data corruption.
 # NUM_PARALLEL = 2
 
+# When multithreading, OpenBLAS needs to use a memory buffer for communicating
+# and collating results for individual subranges of the original matrix. Since
+# the original GotoBLAS of the early 2000s, the default size of this buffer has
+# been set at a value of 32<<20 (which is 32MB) on x86_64 , twice that on PPC.
+# If you expect to handle large problem sizes (beyond about 30000x30000) uncomment
+# this line and adjust the (32<<n) factor if necessary. Usually an insufficient value
+# manifests itself as a crash in the relevant scal kernel (sscal_k, dscal_k etc) 
+# BUFFERSIZE = 25
+
 # If you don't need to install the static library, please comment this in.
 # NO_STATIC = 1