Comments (2)
nm, searched through the code and found how to set it:
executor.update_parameters(
slurm_job_name='submitit_test',
nodes=2,
tasks_per_node=2,
slurm_gres='gpu:volta:2',
cpus_per_task=20,
slurm_constraint='xeon-g6',
slurm_partition="gaia",
slurm_setup=[
"""export MASTER_ADDR=$(hostname -s)""",
"""export MASTER_PORT=$(python -c 'import socket; s=socket.socket(); s.bind(("", 0)); print(s.getsockname()[1]); s.close()')"""]
)
from submitit.
I thought we add something simpler to set an environment variable in the job environment.
@jrapin ?
from submitit.
Related Issues (20)
- Documentation of `executor.update_parameters` arguments HOT 1
- array_parallelism on local machine HOT 1
- Conda version out of date HOT 1
- AttributeError , AutoExecutor attribute not recognised by submitit HOT 1
- Enabling sbatch file re-use. HOT 2
- Support Slurm Heterogeneous Job HOT 2
- timeout_min=0 results in pending jobs when a Slurm partition timelimit is set
- Does setting `folder` in `AutoExecutor` interfere with sattach? HOT 1
- Submitit map_array is using 2 GPUs but only requested 1 HOT 1
- Improving performance with NVidia GPU affinity?
- When 'submitit' meet 'mpirun', there will be a very strange BUG.
- Failed to launch: Invalid wckey specification
- Too many sacct requests for batched tasks
- Turn off Signal Handling HOT 2
- Unexpected behavior of memory specification between `AutoExecutor` and `SlurmExecutor`
- Submitit jobs die with no error on cluster with SLURM 19.05 HOT 1
- Using `RsyncSnapshot` with a editable package install HOT 2
- Can I use torchrun with submitit?
- Failure of submitit 1.5.1 with python 3.12 because of missing pkg_resources
- How to retrieve a running job and cancel it
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 submitit.