Closed tgy closed 10 months ago
Hi,
yeah that should be possible, you'll just need to do a little setup and point the pyslurm setup to the correct directories:
mkdir ~/slurm-devel
cd ~/slurm-devel
git clone https://github.com/SchedMD/slurm.git && cd slurm
# Check your slurm version (e.g. squeue --version) and checkout the specific tag:
git checkout tags/<version> -b <branch_name>
# I think you have to also run atleast a blank configure, so the slurm_version.h file gets created properly
./configure
The slurm
subdirectory contains all the header files
/usr/lib64/libslurm.so.X
And then you can do:mkdir ~/slurm-devel/lib
ln -s $PATH_TO_VERSIONED_LIBSLURM.SO ~/slurm-devel/lib/libslurm.so
Essentially it should look like this then:
slurm-devel
> lib/libslurm.so
> slurm/slurm (headers)
And then you can do:
cd pyslurm-repo
export SLURM_LIB_DIR=~/slurm-devel/lib
export SLURM_INCLUDE_DIR=~/slurm-devel/slurm
pip install .
That should hopefully work (although a little hacky)
Thanks a lot!!
is it possible to install pyslurm on a cluster where i don't have the slurm-devel package and thus don't have the shared libraries? (of course i'm not root on the cluster and can't install additional libs)