Week 4

Homework

  • Written HW: Ben-Ari p. 39:
    • Exercises 2, 3, and 4
    • Due: Mon, Feb 11

UPC

  • Unified Parallel C
  • see resources in sidebar
  • tutorial introduction

ssh keys

  • you need to set up your accounts for ssh’ing between workstations without password prompts
  • follow these steps to establish a trust connection for your account among our workstations
    1. $ ssh-keygen
      hit enter through all the prompts
    2. $ cd ~/.ssh
    3. then type this command:
      $ cat id_rsa.pub >> authorized_keys2

  • for more information about ssh and public key authentication, see: Secure_Shell

setup

  • create a bin directory if you don’t already have one:
    • $ cd
    • $ mkdir bin
  • copy my setup script into your bin directory:
    • $ cp ~mlsmith/bin/set-upc-env ~/bin
  • run your setup script:
    • $ source ~/bin/set-upc-env
  • copy the tutorial programs to your account under your course directory:
    • $ cd ~/cs377
    • $ cp -r ~mlsmith/cs377-examples/upc ./
      this will create a upc directory under your course directory
  • now you’re ready to compile and run! (see sidebar technical reference)

Lecture Notes

  • Ben-Ari Ch’s 1 and 2
    • Ben-Ari slides: PDF
      • resume slide 34
    • Formula(number of possible interleavings):
      • # interleavings = (nk)! / (k!)^2
      • where n = # processes and k = # steps / process
courses/cs377-201301/week4.txt · Last modified: 2013/04/27 21:23 by mlsmith
VCCS Top Events Extended Site Search Login Vassar Science Web Vassar Home Driven by DokuWiki Valid XHTML 1.0