mpimd-csc / flexiblas

FlexiBLAS - A BLAS and LAPACK wrapper library with runtime exchangeable backends. This is only a mirror of https://gitlab.mpi-magdeburg.mpg.de/software/flexiblas-release
https://www.mpi-magdeburg.mpg.de/projects/flexiblas
GNU Lesser General Public License v3.0
37 stars 7 forks source link

RFE: per-package default backend #4

Open Enchufa2 opened 4 years ago

Enchufa2 commented 4 years ago

From a distro point of view, a system-wide default works for most cases, but it would be nice to have a way to set a different default for certain packages in a future version.

For example, Fedora's current system-wide default, openblas-openmp, makes some scipy's tests crash randomly. A similar thing was observed for clblast. Checking with FLEXIBLAS=netlib is the safest option and solves all these problems, but it would be better to be able to set a different default altogether for these.

grisuthedragon commented 4 years ago

In general a good idea but I have no suitable idea yet, how this could be realized.

Enchufa2 commented 4 years ago

This is long term. I have to think about it too. I'll extend the discussion here if something comes to mind.

grisuthedragon commented 3 years ago

I have an first idea. One could parse /proc/self/cmdline on startup for a per-application setting.

Enchufa2 commented 3 years ago

That seems promising!