gimp: OpenBLAS: GotoBLAS : Can't open shared memory. Terminated.

after some recent updates, i’m getting

gimp: GotoBLAS : Can’t open shared memory. Terminated.

i tried various alternatives with
sudo update-alternatives --config
Selection Path Priority Status

0 /usr/lib64/blas/ 50 auto mode

  • 1 /usr/lib64/blas/ 50 manual mode
    2 /usr/lib64/ 20 manual mode
    3 /usr/lib64/ 20 manual mode

all the selections results in the same error

i found a workaround


but this shouldn’t be the case
it seem to be unable to initialise shared memory

apparently some fixes to openblas needs to be applied
but these fixes are sitting on the development branch on OpenBLAS github repository

#if defined(BIGNUMA)
// max number of nodes as defined in numa.h
// max cpus as defined in most sched.h
// cannot use CPU_SETSIZE directly as some
// Linux distributors set it to 4096 
#define MAX_NODES	128
#define MAX_CPUS	1024     <<<<<<<<<<<<< this is CPU_SETSIZE in the production master branch !
#define MAX_NODES	16
#define MAX_CPUS	256

logged a bug report

for some reason the issue has been resolved

recently there is a proprietary Nvidia drivers update from Nvidia repository
among the things i did is i changed the libglx config from xorg to nvidia-libglx
but i’m not too sure if this is the thing that fixed it

the other thing is i rebooted

update-alternatives --config
There are 2 choices for the alternative (providing /usr/lib64/xorg/modules/extensions/

Selection Path Priority Status

0 /usr/lib64/xorg/modules/extensions/nvidia/ 100 auto mode

  • 1 /usr/lib64/xorg/modules/extensions/nvidia/ 100 manual mode
    2 /usr/lib64/xorg/modules/extensions/xorg/ 50 manual mode

but now i’m able to run gimp without OPENBLAS_NUM_THREADS=1