Docsity

MA402 Lab Report: Super-Computing and Parallel Computing, 2001, Lab Reports of Mathematics

Toggle sidebar
bg1
MA402 Lab2 Report – Super-Computing and Parallel Computing, 2001
Name: ID: Time In: Time Out:
1. List some factors that affect efficiency of a simulation through computers.
2. What super-computers are available to public at NCSC? Are those machines sequential or
parallel? How can you get started to use them?
3. Write down a pseudo-code of matrix-vector multiplication in i-jform and j-iform (column
by column).
4. (a) Use anonymous ftp ftp.ncsu.edu to get file matvec ij.f90 and matvec ji.f90 in the directory
/pub/math/zhilin/TEACHING/MA402.
(b) Compile the codes with
f90 -O1 matvec ji.f90 -o a.out
f90 -O1 matvec ij.f90 -o a1.out
(c) Run you code and record the time for n= 1500. Which version is faster and why?
5. Now telnet to the super-computer Cray T916 at NCSC using telnet flyer.ncsc.org with the
assigned login name ma580 ?Change the password if required or the passwd command to
change the password. I suggest that you use the same password as your NCSU account.
6. Now use anonymous ftp ftp.ncsu.edu again to get file matvec ij.f90 and matvec ji.f90 in the
directory /pub/math/zhilin/TEACHING/MA402. Also get the file matvec.f90. Compile the
codes again with the same command Run you code and record the time for n= 1500. How do
the results compared with each, with the results from Sun Workstations? (how many times
faster?)
pf2

Partial preview of the text

Download MA402 Lab Report: Super-Computing and Parallel Computing, 2001 and more Lab Reports Mathematics in PDF only on Docsity!

MA402 Lab2 Report – Super-Computing and Parallel Computing, 2001

Name: ID: Time In: Time Out:

  1. List some factors that affect efficiency of a simulation through computers.
  2. What super-computers are available to public at NCSC? Are those machines sequential or parallel? How can you get started to use them?
  3. Write down a pseudo-code of matrix-vector multiplication in i-j form and j-i form (column by column).
  4. (a) Use anonymous ftp ftp.ncsu.edu to get file matvec ij.f90 and matvec ji.f90 in the directory /pub/math/zhilin/TEACHING/MA402. (b) Compile the codes with f90 -O1 matvec ji.f90 -o a.out f90 -O1 matvec ij.f90 -o a1.out (c) Run you code and record the time for n = 1500. Which version is faster and why?
  5. Now telnet to the super-computer Cray T916 at NCSC using telnet flyer.ncsc.org with the assigned login name ma580? Change the password if required or the passwd command to change the password. I suggest that you use the same password as your NCSU account.
  6. Now use anonymous ftp ftp.ncsu.edu again to get file matvec ij.f90 and matvec ji.f90 in the directory /pub/math/zhilin/TEACHING/MA402. Also get the file matvec.f90. Compile the codes again with the same command Run you code and record the time for n = 1500. How do the results compared with each, with the results from Sun Workstations? (how many times faster?)
  1. • Telnet the SGI Origin 2000 machine (telnet sonoma.ncsc.org) using the same login name ma580 ?, and change password.
  • Use anonymous ftp ftp.ncsu.edu to get file openmp1.f90, serialpi mp.f, and serialpi.f and gettimef.f in the directory /pub/math/zhilin/TEACHING/MA402.
  • Type setenv OMP NUM THREADS 8
  • Type f90 -mp openmp1.f90 and run the program. Record your result.
  • Type f90 -mp serialpi mp.f gettimef.f and run the program. Record your result.
  • Type f90 serialpi.f gettimef.f and run the program. Record your result. What is the speed-up for the parallel computation roughly?
  1. • Telnet the IBM SP2 machine (telnet sps001.ncsc.org, or sps002.ncsc.org, or sps003.ncsc.org) using the same login name ma580 ?, and change password ONLY through telnet spcws.ncsc.org.
  • Use anonymous ftp ftp.ncsu.edu to get all the files, in the directory /pub/math/zhilin/TEACHING/MA402.
  • Type mpxlf90 -O4 matvecmo.f^1 and run the code with 2, 4, 8, and 16 processors with poe ./a.out -procs 4 -hfile cpus16, for example. Record the time. Record the time. Note: poe is a program of parallel programming environment which can distribute the resources more efficiently.
  • Repeat for the file heat2dm.f and poll2dm.f.
  1. Finally let us put a job in queue

llsubmit envrmpi8 submit a job llq check list of jobs llcancel 46386 for example.

(^1) It is mpcc in C language.