User Tools

Site Tools


slurm

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
slurm [2025/06/30 17:58] amcguireslurm [2025/06/30 17:59] (current) amcguire
Line 93: Line 93:
  
 <code> <code>
-(base) amcguire@fe01:~$ cat mpi-hello.c +amcguire@fe01:~$ cat mpi-hello.c 
 #include <mpi.h> #include <mpi.h>
 #include <unistd.h> #include <unistd.h>
Line 120: Line 120:
     MPI_Finalize();     MPI_Finalize();
 } }
-(base) amcguire@fe01:~$ cat hello-job.sh+amcguire@fe01:~$ cat hello-job.sh
 #!/bin/bash #!/bin/bash
 #SBATCH -J mpi-hello            # Job name #SBATCH -J mpi-hello            # Job name
Line 133: Line 133:
 mpirun -np 2 ./mpi-hello mpirun -np 2 ./mpi-hello
  
-(base) amcguire@fe01:~$ mpicc -o mpi-hello mpi-hello.c +amcguire@fe01:~$ mpicc -o mpi-hello mpi-hello.c 
-(base) amcguire@fe01:~$ ls -l mpi-hello+amcguire@fe01:~$ ls -l mpi-hello
 -rwxrwx--- 1 amcguire amcguire 16992 Jun 30 10:49 mpi-hello -rwxrwx--- 1 amcguire amcguire 16992 Jun 30 10:49 mpi-hello
-(base) amcguire@fe01:~$ sbatch -w p001,p002 -p peanut-cpu hello-job.sh+amcguire@fe01:~$ sbatch -w p001,p002 -p peanut-cpu hello-job.sh
 Submitted batch job 1196702 Submitted batch job 1196702
-(base) amcguire@fe01:~$ cat hello-job.out +amcguire@fe01:~$ cat hello-job.out 
 Hello from process 0 of 2 on host p001 Hello from process 0 of 2 on host p001
 Hello from process 1 of 2 on host p002 Hello from process 1 of 2 on host p002
/var/lib/dokuwiki/data/pages/slurm.txt · Last modified: 2025/06/30 17:59 by amcguire

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki