CompSci 491, Intro. to Networks and PDC

Index: Announcements, Notes, Software Links


to Newest entry.

Posting Date Item
(start of semester) Welcome to CompSci 491, Intro. to Networks and PDC.
This page will contain announcements and updates that occur throughout the semester.

Scroll down or check the links above left for specific course materials. Check "Class Notes, below" for online versions of material covered in class.


Connecting to Raspberry Pi in the lab

Here is the script that sets up a Hardware Lab computer to connect to a Raspberry Pi:

Download this script on the host computer, and run it with python Then connect your Raspberry Pi and wait for it to assign an IP address to the host computer.

2018-12-06 Final exam — take-home.

Class Notes

Date Item

Review: Storage —
main memory, cache.
From CompSci 330

2020-09-20 Homework solutions:
2020-09-28 Midterm Exam:
2020-10-04 Midterm Exam:
  • Madhava-Leibniz-pthreads approximations to value of Pi. Includes "busy-wait" and "mutex" versions to protect the critical section.
2019-11-06 pi-darts-solution — solution to assignment 3, Pi approximation with OpenMP.



MPI sample programs and exercises
Tutorial page on MPI, with example programs including ones with errors for study. From Lawrence Livermore National Laboratory.
How to Design a Parallel Program
Detailed tutorial on the use of OpenMP, with coding examples/exercises.


script for wifi-connections

Run this script to establish a wifi connection from a Raspberry Pi to a wifi router.

Operating System image

Updated: rpi64 Operating System image — the 64-bit operating system for use in CompSci 491.
64-bit OS for Raspberry Pi 4B, 3B+, and 3B. Customized for headless operation.

This edition includes updated software, the tmux and zsh apps, and a script for configuring the cluster networking on both the root (head) node and the compute (secondary) nodes.

for Windows users

Install these programs on your computer as needed. The first, "Raspberry Pi Imager", will be used once to copy the OS image onto your microSD card.

The "Xming" software is an X Window server.

"PuTTY" is a remote-connection tool that opens an SSH session to a host such as the Raspberry Pi.

First start "Xming", then run "PuTTY", enable X11 forwarding, and connect to the root node. (Initially at "compsci@". After cluster configuration, it will be "compsci@".)

Once you are logged in, you can start a GUI program (such as an editor) that will connect to Xming to display the window.

for MacOS and Linux users

Needed software is standard on these operating systems.
  1. Insert microSD card into USB adapter; plug USB adapter into computer.
  2. Determine what device the card appears as: for example, "/dev/sdc".

    One way to do this is with the "dmesg" command. It will show you the most recent hardware activity; you should see that the card was recognized as "dev/sd???".

  3. If the card was automounted by the computer, unmount it again (but leave it plugged in).
  4. Run this command: sudo dd bs=4M status=progress if=devuanpi.2018-08-25.img of=/dev/sdc Change the image file name and output device as needed.
  5. When that's done, run the command: sync
  6. Remove the card and use it.

There is also a Raspberry Pi Imager utility that can do the "burning". See the information under "for Windows users", above.