====== Week 4 ====== ~~NOTOC~~ ===== 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 - ''$ ssh-keygen'' \\ //hit enter through all the prompts// - ''$ cd ~/.ssh'' - then type this command: $ cat id_rsa.pub >> authorized_keys2 * for more information about ssh and public key authentication, see: [[wp>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 [[tech_ref|technical reference]]) ===== Lecture Notes ===== * Ben-Ari Ch's 1 and 2 * Ben-Ari slides: {{slides.pdf|PDF}} * resume slide 34 * Formula(number of possible interleavings): * # interleavings = (nk)! / (k!)^2 * where n = # processes and k = # steps / process