Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
Tags
- java
- Source
- SLURM
- GPU
- Cray
- HPCM
- ubuntu
- CUDA
- Linux
- CPU
- AMD
- Kernel
- HPFSS
- Docker
- conda
- LUSTRE
- version
- infiniband
- HPE
- patch
- rhel
- 1.10
- top500
- nvidia
- gpfs
- Singularity
- 1.9
- PFSS
- hpcm패치
- build
Archives
- Today
- Total
HPE CRAY 자료 공유
PBS vs Slurm 본문
1. Commands
User Commands | PBS | Slurm |
Job submission | qsub [script_file] | sbatch [script_file] |
Job deletion | qdel [job_id] | scancel [job_id] |
Job status (by job) | qstat [job_id] | squeue [job_id] |
Job status (by user) | qstat -u [user_name] | squeue -u [user_name] |
Job hold | qhold [job_id] | scontrol hold [job_id] |
Job release | qrls [job_id] | scontrol release [job_id] |
Queue list | qstat -Q | squeue |
Node list | pbsnodes -l | sinfo -N OR scontrol show nodes |
Cluster status | qstat -a | sinfo |
2. Environment
Environment | PBS | Slurm |
Job ID | $PBS_JOBID | $SLURM_JOBID |
Submit Directory | $PBS_O_WORKDIR | $SLURM_SUBMIT_DIR |
Submit Host | $PBS_O_HOST | $SLURM_SUBMIT_HOST |
Node List | $PBS_NODEFILE | $SLURM_JOB_NODELIST |
3. Job Script
(1) PBS
#!/bin/sh #PBS -V #PBS -N test_job #PBS -q normal #PBS -l select=1:ncpus=1:mpiprocs=1:ompthreads=1 #PBS -l walltime=01:00:00 cd $PBS_O_WORKDIR ./test.x |
(2) Slurm
#!/bin/sh #SBATCH -J test_job #SBATCH -p normal #SBATCH -N 1 #SBATCH -n 1 #SBATCH -o %x_%j.out #SBATCH -e %x_%j.err #SBATCH --time=01:00:00 export OMP_NUM_THREADS=1 srun ./test.x exit 0 |
4. Interactive Job
(1) PBS
$ qsub -I -q normal -l select=1:ncpus=1 -l walltime=01:00:00 |
(2) Slurm
일반 | $ srun -p normal -N 1 -n 1 --pty bash |
znode44 노드 지정 | $ srun -p normal -N 1 -n 1 -w znode44 --pty bash |
znode44 독점 모드 사용 | $ srun -p normal -N 1 -n 1 -w znode44 --exclusive --pty bash |
'Applications > Scheduler' 카테고리의 다른 글
[slurm] debuild with gpu (1) | 2024.01.13 |
---|---|
[Build] slurm installation(RHEL 8.6) (1) | 2023.11.14 |
[slurm] rpmbuild with gpu (0) | 2023.11.14 |
[Ubuntu] Slurm source install (0) | 2021.09.14 |
[slurm] 작업 노드 지정 (0) | 2021.07.23 |