On Mon, 2026-02-23 at 10:21 +0100, Ole Streicher wrote:
> I talked to upstream and the reason seems that wsclean uses a different
> threading system on some places, and that doesn't work together well
> (heave performance problems). Also he mentions that setting the
> environment variable in the program is too late because then the libblas
> is already loaded.

BLIS is single threaded unless an environment variable is specified.

If your program is an ELF binary, you may add the following path as the RPATH
to force override the BLAS to single threaded implementation regardless of
the alternatives system:

/usr/lib/x86_64-linux-gnu/blis-serial/

If it is a script or can be wrapped with script, LD_LIBRARY_PATH and LD_PRELOAD
with the correct blas implementation will also work.

Reply via email to