Skip to content

Commit 8c2738c

Browse files
committed
deploy: 51e904d
1 parent 07f59af commit 8c2738c

2 files changed

Lines changed: 30 additions & 18 deletions

File tree

docs/faq/index.html

Lines changed: 29 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1063,22 +1063,27 @@
10631063
</span>
10641064
</a>
10651065

1066-
<nav class="md-nav" aria-label="Getting &#34;ELF load command address/offset not properly aligned&#34; when loading libopenblas.so">
1067-
<ul class="md-nav__list">
1066+
</li>
10681067

10691068
<li class="md-nav__item">
1070-
<a href="#using-openblas-with-openmp" class="md-nav__link">
1069+
<a href="#the-tests-work-fine-but-calling-any-complex-function-from-my-code-produces-wrong-or-no-results" class="md-nav__link">
10711070
<span class="md-ellipsis">
10721071

1073-
Using OpenBLAS with OpenMP
1072+
The tests work fine, but calling any complex function from my code produces wrong or no results
10741073

10751074
</span>
10761075
</a>
10771076

10781077
</li>
10791078

1080-
</ul>
1081-
</nav>
1079+
<li class="md-nav__item">
1080+
<a href="#using-openblas-with-openmp" class="md-nav__link">
1081+
<span class="md-ellipsis">
1082+
1083+
Using OpenBLAS with OpenMP
1084+
1085+
</span>
1086+
</a>
10821087

10831088
</li>
10841089

@@ -1603,22 +1608,27 @@
16031608
</span>
16041609
</a>
16051610

1606-
<nav class="md-nav" aria-label="Getting &#34;ELF load command address/offset not properly aligned&#34; when loading libopenblas.so">
1607-
<ul class="md-nav__list">
1611+
</li>
16081612

16091613
<li class="md-nav__item">
1610-
<a href="#using-openblas-with-openmp" class="md-nav__link">
1614+
<a href="#the-tests-work-fine-but-calling-any-complex-function-from-my-code-produces-wrong-or-no-results" class="md-nav__link">
16111615
<span class="md-ellipsis">
16121616

1613-
Using OpenBLAS with OpenMP
1617+
The tests work fine, but calling any complex function from my code produces wrong or no results
16141618

16151619
</span>
16161620
</a>
16171621

16181622
</li>
16191623

1620-
</ul>
1621-
</nav>
1624+
<li class="md-nav__item">
1625+
<a href="#using-openblas-with-openmp" class="md-nav__link">
1626+
<span class="md-ellipsis">
1627+
1628+
Using OpenBLAS with OpenMP
1629+
1630+
</span>
1631+
</a>
16221632

16231633
</li>
16241634

@@ -1699,13 +1709,12 @@ <h1>FAQ</h1>
16991709
<li><a href="#multithreaded-openblas-runs-no-faster-or-is-even-slower-than-singlethreaded-on-my-armv7-board">Multithreaded OpenBLAS runs no faster or is even slower than singlethreaded on my ARMV7 board</a></li>
17001710
<li><a href="#speed-varies-wildly-between-individual-runs-on-a-typical-armv8-smartphone-processor">Speed varies wildly between individual runs on a typical ARMV8 smartphone processor</a></li>
17011711
<li><a href="#i-cannot-get-openblas-to-use-more-than-a-small-subset-of-available-cores-on-a-big-system">I cannot get OpenBLAS to use more than a small subset of available cores on a big system</a></li>
1702-
<li><a href="#getting-elf-load-command-addressoffset-not-properly-aligned-when-loading-libopenblasso">Getting "ELF load command address/offset not properly aligned" when loading libopenblas.so</a><ul>
1712+
<li><a href="#getting-elf-load-command-addressoffset-not-properly-aligned-when-loading-libopenblasso">Getting "ELF load command address/offset not properly aligned" when loading libopenblas.so</a></li>
1713+
<li><a href="#the-tests-work-fine-but-calling-any-complex-function-from-my-code-produces-wrong-or-no-results">The tests work fine, but calling any complex function from my code produces wrong or no results</a></li>
17031714
<li><a href="#using-openblas-with-openmp">Using OpenBLAS with OpenMP</a></li>
17041715
</ul>
17051716
</li>
17061717
</ul>
1707-
</li>
1708-
</ul>
17091718
</div>
17101719
<h2 id="general-questions">General questions</h2>
17111720
<h3 id="what-is-blas-why-is-it-important"><a name="whatblas"></a>What is BLAS? Why is it important?</h3>
@@ -1929,7 +1938,10 @@ <h3 id="i-cannot-get-openblas-to-use-more-than-a-small-subset-of-available-cores
19291938
<h3 id="getting-elf-load-command-addressoffset-not-properly-aligned-when-loading-libopenblasso"><a name="ELFoffset"></a>Getting "ELF load command address/offset not properly aligned" when loading libopenblas.so</h3>
19301939
<p>If you get a message "error while loading shared libraries: libopenblas.so.0: ELF load command address/offset not properly aligned" when starting a program that is (dynamically) linked to OpenBLAS, this is very likely due to a bug in the GNU linker (ld) that is part of the
19311940
GNU binutils package. This error was specifically observed on older versions of Ubuntu Linux updated with the (at the time) most recent binutils version 2.38, but an internet search turned up sporadic reports involving various other libraries dating back several years. A bugfix was created by the binutils developers and should be available in later versions of binutils.(See issue 3708 for details)</p>
1932-
<h4 id="using-openblas-with-openmp"><a name="OpenMP"></a>Using OpenBLAS with OpenMP</h4>
1941+
<h3 id="the-tests-work-fine-but-calling-any-complex-function-from-my-code-produces-wrong-or-no-results"><a name="CallingConvention"></a>The tests work fine, but calling any complex function from my code produces wrong or no results</h3>
1942+
<p>This is almost certainly a problem with the calling convention used, in particular with the way the computed result is transported back to the caller. By default, OpenBLAS follows the F2C convention of returning the result on the stack rather than as the first argument to the function. So if your code has a prototype like "void cdotu ( complex *res, int n,...)" change it to "complex cdotu (int n,...)". Better yet,
1943+
use the CBLAS interface rather than the Fortran one.</p>
1944+
<h3 id="using-openblas-with-openmp"><a name="OpenMP"></a>Using OpenBLAS with OpenMP</h3>
19331945
<p>OpenMP provides its own locking mechanisms, so when your code makes BLAS/LAPACK calls from inside OpenMP parallel regions it is imperative
19341946
that you use an OpenBLAS that is built with USE_OPENMP=1, as otherwise deadlocks might occur. Furthermore, OpenBLAS will automatically restrict itself to using only a single thread when called from an OpenMP parallel region. When it is certain that calls will only occur
19351947
from the main thread of your program (i.e. outside of omp parallel constructs), a standard pthreads build of OpenBLAS can be used as well. In that case it may be useful to tune the linger behaviour of idle threads in both your OpenMP program (e.g. set OMP_WAIT_POLICY=passive) and OpenBLAS (by redefining the THREAD_TIMEOUT variable at build time, or setting the environment variable OPENBLAS_THREAD_TIMEOUT smaller than the default 26) so that the two alternating thread pools do not unnecessarily hog the cpu during the handover.</p>
@@ -1955,7 +1967,7 @@ <h4 id="using-openblas-with-openmp"><a name="OpenMP"></a>Using OpenBLAS with Ope
19551967
<span class="md-icon" title="Last update">
19561968
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M21 13.1c-.1 0-.3.1-.4.2l-1 1 2.1 2.1 1-1c.2-.2.2-.6 0-.8l-1.3-1.3c-.1-.1-.2-.2-.4-.2m-1.9 1.8-6.1 6V23h2.1l6.1-6.1zM12.5 7v5.2l4 2.4-1 1L11 13V7zM11 21.9c-5.1-.5-9-4.8-9-9.9C2 6.5 6.5 2 12 2c5.3 0 9.6 4.1 10 9.3-.3-.1-.6-.2-1-.2s-.7.1-1 .2C19.6 7.2 16.2 4 12 4c-4.4 0-8 3.6-8 8 0 4.1 3.1 7.5 7.1 7.9l-.1.2z"/></svg>
19571969
</span>
1958-
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-date" title="January 17, 2026 19:58:49 UTC">January 17, 2026</span>
1970+
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-date" title="March 22, 2026 22:44:32 UTC">March 22, 2026</span>
19591971
</span>
19601972

19611973

docs/search/search_index.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)