You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am building the ScaLAPACK library using the provided CMake script. After installation, the installed library DSO maintains the RUNPATH present in the output of the build process. However, the default behavior of CMake is to remove the RUNPATH during the installation of the library according to the community wiki. I couldn't find in the CMake files any obvious command setting the RUNPATH of the installed binary (e.g. CMAKE_INSTALL_RPATH_USE_LINK_PATH). Is this behavior a bug, or a deliberate design choice?
As a work around, the build can be configured with
and the installed library binary will have no RUNPATH entry. However, it would be nice to know the cause of the issue.
To reproduce the issue, configure the commit 7e4e07070a489686287c36ab473d21cf29a54bdd with settings from the CMakeUserPresets.json file (cmake -S . --preset default-config):
The OpenBLAS library is used, and the path to the installation directory with OpenBLAS is contained in the CMAKE_PREFIX_PATH entry of the settings files. The output of the build command contains in the RUNPATH entry the paths for the MPI and OpenBLAS libraries. After installation, the paths to the OpenBLAS library is removed but not the path to the MPI library.
I would expect the installed ScaLAPACK DSO to have no RUNPATH entry.
I would understand it if it was a design choice to maintain the RUNPATH. However, none of the CMake variables required to install the DSO with the RUNPATH is set, so there may be some unintended side effect.
The text was updated successfully, but these errors were encountered:
I am building the ScaLAPACK library using the provided CMake script. After installation, the installed library DSO maintains the
RUNPATH
present in the output of the build process. However, the default behavior of CMake is to remove theRUNPATH
during the installation of the library according to the community wiki. I couldn't find in the CMake files any obvious command setting theRUNPATH
of the installed binary (e.g.CMAKE_INSTALL_RPATH_USE_LINK_PATH
). Is this behavior a bug, or a deliberate design choice?As a work around, the build can be configured with
and the installed library binary will have no
RUNPATH
entry. However, it would be nice to know the cause of the issue.To reproduce the issue, configure the commit
7e4e07070a489686287c36ab473d21cf29a54bdd
with settings from theCMakeUserPresets.json
file (cmake -S . --preset default-config
):The OpenBLAS library is used, and the path to the installation directory with OpenBLAS is contained in the
CMAKE_PREFIX_PATH
entry of the settings files. The output of the build command contains in the RUNPATH entry the paths for the MPI and OpenBLAS libraries. After installation, the paths to the OpenBLAS library is removed but not the path to the MPI library.I would expect the installed ScaLAPACK DSO to have no
RUNPATH
entry.I would understand it if it was a design choice to maintain the RUNPATH. However, none of the CMake variables required to install the DSO with the RUNPATH is set, so there may be some unintended side effect.
The text was updated successfully, but these errors were encountered: