Write My Paper Button

WhatsApp Widget

CS 596: Homework 1 | My Assignment Tutor

CS 596: Introduction to Parallel ComputingHomework1: Using the Student Cluster/Unix Ops.Mary ThomasDepartment of Computer ScienceComputational Science Research Center (CSRC)San Diego State University (SDSU)Due: 09/09/14Posted: 08/26/14Updated: 09/03/14CS 596: Homework 1 Due: 09/09/14 Posted: 08/26/14 Updated: 09/03/14 2/16 Mary ThomasTable of Contents1 Homework #1 Overview: Running Using the student clusterHomework #1a: Accessing the student clusterHomework #1b: Homework directoriesHomework #1c: Unix operationsHomework #1d: Pacheco example codeHomework #1e: Histogram programHomework #1f: Timing the Histogram program2 What to turn inCS 596: Homework 1 Due: 09/09/14 Posted: 08/26/14 Updated: 09/03/14 3/16 Mary ThomasHomework #1 Overview: Running Using the student clusterHomework #1 OverviewDue: 09/09/14This homework involves demonstrating that you can log onto thestudent cluster. Tasks:obtain a user account and logoncreate the correct homework directory structureperform simple unix operations to get you familiar with the systeminstall the pacheco demo codes into your directoriescompile, run, test, time a histogram programCS 596: Homework 1 Due: 09/09/14 Posted: 08/26/14 Updated: 09/03/14 4/16 Mary ThomasHomework #1 Overview: Running Using the student clusterHomework #1a: Accessing the student clusterHomework #1a: Accessing the student clusterDescription: obtain a user account and logon using sshOnce you are confirmed in the class, we will create an account usingyour last name (or using first name initials + last name in the caseof duplicate last names).This will usually be done after the second day of class.What to turn in: some image or evidence that you logged on:such as a listing of your directory on tuckooCS 596: Homework 1 Due: 09/09/14 Posted: 08/26/14 Updated: 09/03/14 5/16 Mary ThomasHomework #1 Overview: Running Using the student clusterHomework #1a: Accessing the student clusterHomework #1: Getting cluster information:[ g i d g e t : ~ ] mthomas% ns l o o kup tu ckoo . sdsu . eduS er v er : 1 0 . 0 . 1 . 1Addr ess : 10.0.1.1#53Non-a u t h o r i t a t i v e answer :Name : tu ckoo . sdsu . eduAddr ess : 1 3 0. 1 9 1. 1 2 7. 1 3 6The cluster is on the internal SDSU campus network with noexternal login allowed. You can access the cluster from any oncampus machine, including the ROHAN Academic Computingsystem, rohan.sdsu.edu.You create the account using your WebPortal account. See:Home Page: http://www-rohan.sdsu.edu/Create Rohan Account:http://www-rohan.sdsu.edu/raccts.shtmlCS 596: Homework 1 Due: 09/09/14 Posted: 08/26/14 Updated: 09/03/14 6/16 Mary ThomasHomework #1 Overview: Running Using the student clusterHomework #1a: Accessing the student clusterRemote SSH loginThinClientsSSH# SSH#Client# rohan.sdsu.edu# tuckoo.sdsu.edu#Launch SSH terminal on your computerSSH onto rohan:%ssh [email protected]:sdsu:eduSSH onto tuckoo:%ssh [email protected]:sdsu:edulocate the class homework source code directory:/cs596CS 596: Homework 1 Due: 09/09/14 Posted: 08/26/14 Updated: 09/03/14 7/16 Mary ThomasHomework #1 Overview: Running Using the student clusterHomework #1b: Homework directoriesHomework #1b: Homework directoriesOnce you have account information, you will create a homework directorywhere I will look for all assignment material. You are free to create otherdirectories for development and testing (e.g. dev), but these directoriesmust only contain specific material for the assignment.log onto student cluster: tuckoo.sdsu.edu (130.191.127.136)create a homework directory call hwcreate a sub directory called hw1use unix command chmod to set the directory accesses so only youand the instructor can read/access the codesWhat to turn in: evidence that you completed this:an image, listing, etc.CS 596: Homework 1 Due: 09/09/14 Posted: 08/26/14 Updated: 09/03/14 8/16 Mary ThomasHomework #1 Overview: Running Using the student clusterHomework #1c: Unix operationsHomework #1c: Test these Unix operations:cat /etc/motdNote 1: try these from your home directorywhoami, date, uname -acd ~, pwdls, optional arguments [-al, -R]mkdirchmod, test arguments such as [-R]Create, compile and run a serial “Hello USER” program in C orFortran(where USER is your username).Compiler commands: use the specialized parallel library compilercommandsC code: mpicc -o myprogram myprogram.cC code: mpif90 -o myprogram myprogram.f90where is the command installed?%locate mpiccWhat to turn in: evidence that you completed this:images, text file which contains the output captured, session output.CS 596: Homework 1 Due: 09/09/14 Posted: 08/26/14 Updated: 09/03/14 9/16 Mary ThomasHomework #1 Overview: Running Using the student clusterHomework #1d: Pacheco example codeHomework #1d: Install the Pacheco demo codesDescription:tar files are located in /cs596/pacheco examplesyou may want to read the Unix man pages or Web pages to learnabout the commands for tar and gzipyou will want to locate the histogram code in the IPP codebase(ch2)What to turn in: evidence that you completed this:directory listing.CS 596: Homework 1 Due: 09/09/14 Posted: 08/26/14 Updated: 09/03/14 10/16 Mary ThomasHomework #1 Overview: Running Using the student clusterHomework #1e: Histogram programHomework #1e: Running the Pacheco Histogram coderun the code for different variables:usage: ./histogramuse the following test cases (8 combinations):bin count = [5; 20]min meas = 1max meas = [500; 3000]data count = [50; 500]What to turn in: evidence that you completed this:screen image, or text copy of output.CS 596: Homework 1 Due: 09/09/14 Posted: 08/26/14 Updated: 09/03/14 11/16 Mary ThomasHomework #1 Overview: Running Using the student clusterHomework #1e: Histogram programHomework #1e: Running the histogram programCS 596: Homework 1 Due: 09/09/14 Posted: 08/26/14 Updated: 09/03/14 12/16 Mary ThomasHomework #1 Overview: Running Using the student clusterHomework #1f: Timing the Histogram programHomework #1f: Timing the Histogram codeTime how long the code takes to run as a function of Problem Size:ProbSize = data countWallclock Time: Twalluse the following test cases:bin count = 10min meas = 1max meas = 50000Vary data count = 10n, where n = 0; 1; 2; NmaxWhat is Nmax? Explain the limit.Modify how the code prints out the results: you don’t need to“plot” the histogramYou only need to printout the bins, ranges, and the count (not allthe X’s).Plot your test results using excel, Matlab, by hand: Twall vsProbSizeCS 596: Homework 1 Due: 09/09/14 Posted: 08/26/14 Updated: 09/03/14 13/16 Mary ThomasHomework #1 Overview: Running Using the student clusterHomework #1f: Timing the Histogram programHomework #1f: Timing the Histogram code (cont.)Suggestions for timing:Use unix date function, but not very sensitiveUse C/Fortran internal timerYou can find example timer code in =cs596=tools=code timer:cCS 596: Homework 1 Due: 09/09/14 Posted: 08/26/14 Updated: 09/03/14 14/16 Mary ThomasHomework #1 Overview: Running Using the student clusterHomework #1f: Timing the Histogram programHomework #1f: Timing – What to turn inA table of your test data and a plot of the results. Include labels. ProbSizeTwall10.1100.21000.510000.6100000.9 CS 596: Homework 1 Due: 09/09/14 Posted: 08/26/14 Updated: 09/03/14 15/16 Mary ThomasWhat to turn inHomeworkPut homework into a directory:=596= =hw=hw1include the source code(s), compiled binariessee sections above for what to includeWrite a simple report (this can be TEXT, Word, PDF Doc).See each section for what to turn in.Turn in hard copy at start of class.Once the submission timeline has closedDO NOT CHANGE THE FILE TIMESTAMPS!CS 596: Homework 1 Due: 09/09/14 Posted: 08/26/14 Updated: 09/03/14 16/16 Mary ThomasWhat to turn inHW directory listing example

Don`t copy text!
WeCreativez WhatsApp Support
Our customer support team is here to answer your questions. Ask us anything!
???? Hi, how can I help?