mpiBench
mpiBench copied to clipboard
Where is srun?
trafficstars
Hi,
What is that srun? I don't see that file after make
[mahmood@rocks7 mpiBench]$ ls
crunch_mpiBench makefile mpiBench.c README.md
[mahmood@rocks7 mpiBench]$ make
rm -f mpiBench *.o
mpicc -o mpiBench mpiBench.c
mpiBench.c: In function ‘Print_Timings’:
mpiBench.c:295:9: warning: ‘MPI_Attr_get’ is deprecated (declared at /opt/openmpi/include/mpi.h:1242): MPI_Attr_get is superseded by MPI_Comm_get_attr in MPI-2.0 [-Wdeprecated-declarations]
MPI_Attr_get(comm, dimid_key, (void*) &str, &flag);
^
mpiBench.c: In function ‘main’:
mpiBench.c:935:5: warning: ‘MPI_Keyval_create’ is deprecated (declared at /opt/openmpi/include/mpi.h:1569): MPI_Keyval_create is superseded by MPI_Comm_create_keyval in MPI-2.0 [-Wdeprecated-declarations]
MPI_Keyval_create(MPI_NULL_COPY_FN, MPI_NULL_DELETE_FN, &dimid_key, (void*) &extra_state);
^
mpiBench.c:935:5: warning: ‘OMPI_C_MPI_NULL_COPY_FN’ is deprecated (declared at /opt/openmpi/include/mpi.h:861): MPI_NULL_COPY_FN is deprecated in MPI-2.0 [-Wdeprecated-declarations]
mpiBench.c:935:5: warning: ‘OMPI_C_MPI_NULL_DELETE_FN’ is deprecated (declared at /opt/openmpi/include/mpi.h:857): MPI_NULL_DELETE_FN is deprecated in MPI-2.0 [-Wdeprecated-declarations]
mpiBench.c:942:5: warning: ‘MPI_Attr_put’ is deprecated (declared at /opt/openmpi/include/mpi.h:1244): MPI_Attr_put is superseded by MPI_Comm_set_attr in MPI-2.0 [-Wdeprecated-declarations]
MPI_Attr_put(comms[0], dimid_key, (void*) &comm_desc[256*current_comm]);
^
mpiBench.c:980:13: warning: ‘MPI_Attr_put’ is deprecated (declared at /opt/openmpi/include/mpi.h:1244): MPI_Attr_put is superseded by MPI_Comm_set_attr in MPI-2.0 [-Wdeprecated-declarations]
MPI_Attr_put(comms[current_comm], dimid_key, (void*) &comm_desc[256*current_comm]);
^
mpiBench.c:995:9: warning: ‘MPI_Attr_put’ is deprecated (declared at /opt/openmpi/include/mpi.h:1244): MPI_Attr_put is superseded by MPI_Comm_set_attr in MPI-2.0 [-Wdeprecated-declarations]
MPI_Attr_put(comms[current_comm], dimid_key, (void*) &comm_desc[256*current_comm]);
^
[mahmood@rocks7 mpiBench]$ ls
crunch_mpiBench makefile mpiBench mpiBench.c README.md
@mahmoodn srun is a command used to submit a job to SLURM, which is a resource manager.
Here is a link to SLURM: https://slurm.schedmd.com/quickstart.html
If you don't have SLURM, or don't want to use it, you can simply run the executables with mpirun or mpiexec.