Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
20 views1 page

Linux Command Sheet 2

Uploaded by

Xurxo X
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
20 views1 page

Linux Command Sheet 2

Uploaded by

Xurxo X
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Linux Commands Introduced in the Lectures

Linux Command Sheet 2

OpenMPI: Call Processes


● cd [directory name]
○ Change the current directory to a new directory
● sftp [user]@[IP address]
○ Log into a remote server using the secure file transfer protocol ­ used to send
files to and retrieve files from a remote server
○ While using SFTP:
■ get [filename]
● Downloads the file to your current working directory
■ put [filename]
● Uploads a file from your current working directory
● mpicc [C script] ­o [output C executable]
○ Use MPI to compile a C / C++ program and create an executable file with the
name provided after the ​ ­o​parameter
○ Example: ​ mpicc call_procs.c ­o call_procs
● mpiexec ­n [number] [C executable]
○ Run an MPI­compiled program, and use ​ ­n​number of specified threads
○ Example: ​ mpiexec ­n 4 call_procs

OpenMPI: Calculate Pi
● time [command]
○ Report how long it took for the command to run
○ Example: ​ time mpiexec ­H rpi0,rpi0,rpi0,rpi0 calc_pi
● mpiexec ­H [host1,host2,...] [C executable]
○ Specify the threads to run for a given C program ­ each host listed specifies one
specific thread that will be created for that host
○ Example: ​ time mpiexec ­H rpi0,rpi0,rpi0,rpi0 calc_pi

You might also like