Giter VIP home page Giter VIP logo

Comments (2)

tazend avatar tazend commented on June 26, 2024

Hi,

yeah that should be possible, you'll just need to do a little setup and point the pyslurm setup to the correct directories:

  1. Create a directory:
mkdir ~/slurm-devel
  1. Clone the Slurm Github Repo:
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

  1. Find out the location of the versioned libslurm.so.X - slurm-devel provides the symlink libslurm.so (which PySlurm setup needs currently), but you can easily create this symlinks yourselves, since the versioned libslurm.so.X should definitely be installed. For example if you are on something like CentOS/RHEL, and assuming a default Slurm install, the library should be in /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)

from pyslurm.

tgy avatar tgy commented on June 26, 2024

Thanks a lot!!

from pyslurm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.