Code Monkey home page Code Monkey logo

slurm_hetjob_mpicommworld_test's Introduction

srun

Don't salloc or sbatch.

$ srun -N1 --overlap -n3 ./test_mpi_comm_world : -n3 ./test_mpi_comm_world | sort -k2n
srun: job 116 queued and waiting for resources
srun: job 116 has been allocated resources
Rank 0 generated UUID: ca53b144-a762-4cfc-89dc-47160a740420
Rank 0 received UUID: ca53b144-a762-4cfc-89dc-47160a740420
Rank 1 received UUID: ca53b144-a762-4cfc-89dc-47160a740420
Rank 2 received UUID: ca53b144-a762-4cfc-89dc-47160a740420
Rank 3 received UUID: ca53b144-a762-4cfc-89dc-47160a740420
Rank 4 received UUID: ca53b144-a762-4cfc-89dc-47160a740420
Rank 5 received UUID: ca53b144-a762-4cfc-89dc-47160a740420

salloc -N1 : -N1

$ salloc -N1 : -N1
salloc: Pending job allocation 110
salloc: job 110 queued and waiting for resources
salloc: job 110 has been allocated resources
salloc: Granted job allocation 110
salloc: Nodes athena are ready for job

$ srun --het-group=0 -n3 ./test_mpi_comm_world : --het-group=1 -n3 ./test_mpi_comm_world | sort -k2n
Rank 0 generated UUID: 92e83ec9-746e-432e-9f3f-8e7cc28cf086
Rank 0 received UUID: 92e83ec9-746e-432e-9f3f-8e7cc28cf086
Rank 1 received UUID: 92e83ec9-746e-432e-9f3f-8e7cc28cf086
Rank 2 received UUID: 92e83ec9-746e-432e-9f3f-8e7cc28cf086
Rank 3 received UUID: 92e83ec9-746e-432e-9f3f-8e7cc28cf086
Rank 4 received UUID: 92e83ec9-746e-432e-9f3f-8e7cc28cf086
Rank 5 received UUID: 92e83ec9-746e-432e-9f3f-8e7cc28cf086

sbatch

$ cat het.sb 
#!/bin/bash
#SBATCH --partition=cpu
#SBATCH -N1
#SBATCH hetjob
#SBATCH -N1

srun --het-group=0 -n3 ./test_mpi_comm_world : --het-group=1 -n3 ./test_mpi_comm_world


$ sbatch het.sb 

$ cat slurm-120.out | sort -k2n
Rank 0 generated UUID: 11457598-914e-4010-b0b5-4b557693eea8
Rank 0 received UUID: 11457598-914e-4010-b0b5-4b557693eea8
Rank 1 received UUID: 11457598-914e-4010-b0b5-4b557693eea8
Rank 2 received UUID: 11457598-914e-4010-b0b5-4b557693eea8
Rank 3 received UUID: 11457598-914e-4010-b0b5-4b557693eea8
Rank 4 received UUID: 11457598-914e-4010-b0b5-4b557693eea8
Rank 5 received UUID: 11457598-914e-4010-b0b5-4b557693eea8

sbatch that does not work

$ cat het.sb 
#!/bin/bash
#SBATCH --partition=cpu
#SBATCH -N1
#SBATCH hetjob
#SBATCH -N1

srun --het-group=0 -n3 ./test_mpi_comm_world &
srun --het-group=1 -n3 ./test_mpi_comm_world &
wait
$ cat slurm-122.out | sort -k2n
Rank 0 generated UUID: 2cd835a4-e199-4bec-9856-3f2a1fa6b239
Rank 0 generated UUID: 9e2e1095-6040-4b16-a5f7-a06442b1759e
Rank 0 received UUID: 2cd835a4-e199-4bec-9856-3f2a1fa6b239
Rank 0 received UUID: 9e2e1095-6040-4b16-a5f7-a06442b1759e
Rank 1 received UUID: 2cd835a4-e199-4bec-9856-3f2a1fa6b239
Rank 1 received UUID: 9e2e1095-6040-4b16-a5f7-a06442b1759e
Rank 2 received UUID: 2cd835a4-e199-4bec-9856-3f2a1fa6b239
Rank 2 received UUID: 9e2e1095-6040-4b16-a5f7-a06442b1759e

slurm_hetjob_mpicommworld_test's People

Contributors

papamoose avatar

Watchers

 avatar

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.