Comments (2)
Hi,
yeah that should be possible, you'll just need to do a little setup and point the pyslurm setup to the correct directories:
- Create a directory:
mkdir ~/slurm-devel
- 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
- 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.
Thanks a lot!!
from pyslurm.
Related Issues (20)
- pyslurm throw KeyError 5039 when statistics().get() called HOT 2
- symbol lookup error: undefined symbol: data_init HOT 7
- Installation fails for v22.5.x HOT 2
- Submittion of a batch job will be failed when argument "work_dir" contains a "_" HOT 1
- Unclear that `Jobs.load()` returns a dictionary. HOT 2
- Missing `Job` fields compared to the docs HOT 2
- slurmdbd: Implement Association API
- ValueError: invalid literal for int() with base 10: 'milton.m' HOT 1
- Copy/Paste error in Job class memory property HOT 1
- Cannot seem to get allocated gres info from Node HOT 4
- Node in Nodes collection do not report a MIXED state, only IDLE or ALLOCATED HOT 5
- A job is found with JobFilter if it is running on start_time HOT 6
- job mem returns as "None" HOT 3
- error: ‘KILL_JOB_ARRAY’ undeclared HOT 1
- Slurm 23.11 support HOT 3
- pyslurm is installation failed HOT 2
- Particular value of gres is causing cstr to crash HOT 1
- [guidance request] 'gres' : 'gpu' does not have the same behavior as when using bash HOT 2
- Problem in setup.py get_version() - packaging.version object is missing .major and .minor attributes in earlier module versions under Python 3.6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyslurm.