Results 1 to 5 of 5

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

  1. #1

    Default 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 libblas.so.3
    Selection Path Priority Status
    ------------------------------------------------------------
    0 /usr/lib64/blas/libblas.so.3 50 auto mode
    * 1 /usr/lib64/blas/libblas.so.3 50 manual mode
    2 /usr/lib64/libopenblas_openmp.so.0 20 manual mode
    3 /usr/lib64/libopenblas_pthreads.so.0 20 manual mode

    all the selections results in the same error

  2. #2

    Default Re: gimp: GotoBLAS : Can't open shared memory. Terminated.

    i found a workaround

    Code:
    OPENBLAS_NUM_THREADS=1 gimp
    but this shouldn't be the case
    it seem to be unable to initialise shared memory
    https://github.com/xianyi/OpenBLAS/b...rs/init.c#L658

  3. #3

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

    apparently some fixes to openblas needs to be applied
    but these fixes are sitting on the development branch on OpenBLAS github repository
    https://github.com/xianyi/OpenBLAS/c.../others/init.c
    https://github.com/xianyi/OpenBLAS/c...429275857a3fa3
    https://github.com/xianyi/OpenBLAS/c...429275857a3fa3
    https://github.com/xianyi/OpenBLAS/commit/28ae3ca76fffe35206afaff947283c1dfff7f5e8#diff-227ecc3ab422173879429275857a3fa3

    Code:
    #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 !
    #else
    #define MAX_NODES	16
    #define MAX_CPUS	256
    #endif

  4. #4

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


  5. #5

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

    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 libglx.so
    There are 2 choices for the alternative libglx.so (providing /usr/lib64/xorg/modules/extensions/libglx.so).

    Selection Path Priority Status
    ------------------------------------------------------------
    0 /usr/lib64/xorg/modules/extensions/nvidia/nvidia-libglx.so 100 auto mode
    * 1 /usr/lib64/xorg/modules/extensions/nvidia/nvidia-libglx.so 100 manual mode
    2 /usr/lib64/xorg/modules/extensions/xorg/xorg-libglx.so 50 manual mode

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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •