Lab 10: Using A Personal Computer

Lab 10 is easiest to complete in the CS lab, as the lab workstations have all necessary software already installed. However, if you are unable to use the lab workstations for whatever reason, this page provides information on how to get the needed software.

Apple / MacOS Users

Apple's version of gcc/g++ is rather old and does not support OpenMP. You can download and install a *much* newer version of gcc/g++ that does support OpenMP by following the instructions in Prof. Norman's video walkthrough.

Windows Users

Cygwin Users.
If you followed Prof. Adams' video instructions to install the Cygwin version of gcc/g++, it supports multithreading but requires your to install a separate library for OpenMP. Run the Cygwin setup.exe program you used previously (if necessary, download it again from the Cygwin website, and then

  1. Under Devel, double-check that you have gcc-core, gcc-g++, gdb, and make installed. (If you followed Adams' tutorial, you should already have these.)
  2. Under Libraries, select the latest version of libgomp1 and install it. This will install the OpenMP library files.

MinGW Users.
Follow the steps you used to install MinGW, but go to All Packages > MinGW Libraries, and select / install the following libraries:

  1. mingw32-libpthreadgc-dev, mingw32-libpthreadgc-dll, and mingw32-pthreads-w32-dev.
That should install the multithreading MinGW libraries you will need to complete this exercise. The following images may assist you: Figure 1, Figure 2, and Figure 3. Note: in order to run 'make' in the terminal, you will need to make sure you have added the msys\1.0\bin folder to your PATH variable. For example: if you have installed MinGW in C:\MinGW, add to your PATH variable the directory: C:\MinGW\msys\1.0\bin