Why Shadowfax? Our cluster is so fast that we named it after the Lord Of The Rings character!

Website once known as http://CalcPage.tripod.com (1988 – 2008)

Sidebars are my own work.

Friday, February 15, 2013

CIS(theta) 2012-2013 February Update #1

Computing Independent Study 2012-2013

FEBRUARY UPDATE #1

We finally got around to writing mandelSeq.py and mandelMPI.py using MPI4PY, mathplotlib() and spectral but only on 3 cores. Our work is based on Lisandro Dalcin's excellent materials listed below. We ran mandelSeq.py as an executable file from the terminal just like any standard python program. To accomplish this we added:

#!/usr/bin/python

as the first line of the file and ran:

chmod 755 mandelSeq.py

to make an executable. mandelMPI.py is executed like helloMPI.py:

mpiexec -n 3 python helloMPI.py

JANUARY UPDATE #3

OOPS, we got our signals crossed and had to postpone this meeting! Next time I think we'll try to render some Mandelbrot Fractals. If we ever get back to our old room, we could make a FractalZoom movie using 100 cores instead of just 3....

JANUARY UPDATE #2

Finally, we got helloMPI.py working today on a single node with 3 cores! We wrote the following code:1 from mpi4py import MPI23 rank = MPI.COMM_WORLD.Get_rank()4 size = MPI.COMM_WORLD.Get_size()5 name = MPI.Get_processor_name()67 print ("Hello, World! "8 "I am process %d of %d on %s" %9 (rank, size, name))We saved this text in the file helloMPI.py in the pelicanHPC home dir. Then, from a shell in the home dirm we executed this code by:

We finally had a chance to meet this month in our new PC Lab! We got pelicanHPC to run 3 cores at about 1.2 GFLOPS. We have AMD Phenom IIs. These CPUs are supposed to be quad-cores. It seems one core is dead. Even so, that's not a bad start. However, we could only run pelican in SMP mode. We could not PXE boot any other nodes. We are also looking into Flame Fractals.

********************NOVEMBER UPDATE

Sorry to say that we had no meetings this month. I was hoping for 3 meetings, but Hurricane Sandy changed everything! We are in a new room where we may be able to try out liveLinux CD based MPI clusters next month. Stay tuned!

********************OCTOBER UPDATE #2

That was a great meeting today! We burned 8 CDs of Precise Pangolin and reinstalled the whole back row of our PC LAB/Classroom. Many thanx go to Jeremy for coming to vist today and lending a hand! RELATED POST: http://shadowfaxrant.blogspot.com/2012/11/pc-lab-period-of-reconstruction-at.htmlHere's the steps we followed for a minimal install of the Student Stations (64bit Athlons):Step1: Reboot each Linux box with the current CD. Answer some basic questions about time zone, userid, passwd, no login on bootup, etc.Step2:Reboot each Linux box without the CD. Make sure to configure the gigE cards and proxy server:IP: 10.5.129.xNetMask:255.255.0.0GateWay: 10.5.0.254DNS: 10.5.0.254Proxy: 10.0.0.125Step3:Configure System Settings as desired (unit circle trig calculator background, no screensaver, etc).Step4: We had to switch Software Sources in the Ubuntu Software Center (edit/source) to Main before this would work:sudo apt-get updatesudo apt-get upgradeStep5:Now, we could use the Ubuntu Software Center to install WINE.Step6:I copied my VTI83 and VTI89 directories from my memory stick to the Desktop. Then, after editing preferences to have VTI open with WINE, I configured each calculator.Step7:I will edit my /etc/crontabs tomorrow....Step8:We haven't decided what else we may have to install (local SAGE server, JRE, openSSH, openMPI,etc). We'll have to think about that! Here's some info on install fests from prior years:http://shadowfaxrant.blogspot.com/2011/05/2-so-many-hard-drives-so-little-time.htmlhttp://shadowfaxrant.blogspot.com/2011/01/then-god-mage-midterm-week-and-saw-that.htmlhttp://shadowfaxrant.blogspot.com/2010/06/so-many-linux-distros-so-little-time.html

********************

OCTOBER UPDATE

We decided to try out the new Ubuntu Linux 64bit Desktop 12.04 nicknamed Precise Pangolin. So we surfed on over to http://www.ubuntu.com and downloaded the latest ISO. We burned the CD, rebooted a guinea pig box and reinstalled it. This should be a simple procedure as we no longer use dualboot or dualnic boxes. However, we ran into a SNAFU right away! Intranet gigE works fine, but we can't get on the Internet? OOPs, we forgot the network proxy. If at first you don't succeed, try, try again!Ubuntu Release History4.10 Warty Warthog (mammal)5.04 Hoary Hedgehog (mammal)5.10 Breezy Badger (mammal)6.06 Dapper Drake (bird)6.10 Edgy Eft (amphibian)7.04 Feisty Faun (mammal)7.10 Gutsy Gibbon (mammal)8.04 Hardy Heron (bird)8.10 Intrepid Ibex (mammal)9.04 Jaunty Jackalope (mythical beast)9.10 Karmic Koala (mammal)10.04 Lucid Lynx (mammal) 10.10 Maverick Meerkat (mammal) 11.04 Natty Narwahl (mammal) 11.10 Oneiric Ocelot (mammal) 12.04 Precise Pangolin (mammal) 12.10 Quantal Quetzal (bird) release: 10/18Guardian, our ssh server, is running 10.04 32bit. Guardian has a dualcore 32bit intel Xeon processor with 2GB RAM and a 512GB RAID drive.Caprica, our ftp server, is running 10.04 32bit. Caprica has a dualcore 32bit intel Xeon processor with 2GB RAM and a 512GB RAID drive.Shadowfax, our teacher station, is running 11.10 32bit. Shadowfax has a dualcore 64bit amd Athlon processor with 2GB RAM and a 256GB hdd. We use a 32bit OS here as SmartNotebook doesn't run on 64bit....Alpha-Omega, our student stations, are running 11.04 64bit. These Linux boxes, like Shadowfax, have dualcore 64bit amd Athlon processors with 2GB RAM and a 256GB hdd.We are only upgrading Alpha-Omega to 12.04 (or 12.10 if it's available when we upgrade in a couple of weeks). We are also waiting for a hardware upgrade for Alpha-Omega to amd quadcore Phenoms!

********************

SEPTEMBER UPDATE

We had our traditional first organizational meeting:(1) Wreath of the Unknown Server: We visited our first ssh server, Colossus, which is still in the switch room though dormant. I set it up for the first time in 1995 running Slackware Linux. Colossus ran for 12 years straight, 24x7 never having to shut down, reboot or even have anything re-installed! Colossus would not die. We finally just replaced Colossus with a dual-core Intel Xeon box complete with a RAID drive running 1TB. Old Linux boxes never die, they just fade away...

(2) Display Case Unveiled: We took down a ton of fractal prints and ray tracings from Room 429 to the 2 cases on the 1st floor near the art wing. We decorated both cases as best we could and left before anyone saw us. Must have been gremlins.(3) Recruiting 2012: We decided that we did not have a good pool of candidates to recruit more CIS(theta) members for this year's Geek Squad, so we tabled that topic.(4) Planing 2012: Next meeting would have been 9/28 but that's Yum Kipur. So, we have to wait another 2 weeks after that for 10/10 at which point Ubuntu Precise Pangolin 64bit release 12.10 Desktop Edition should be available for a mini install fest. After that, we may use bootable cluster Linux CD distros to learn MPI.==================================

OLD SITES

OLD STATCOUNTER

OLD CALCPAGE MISSION STATEMENT

The Calculus & Computer Science Archive ProjectOnline Since 1988

This site is here to help new and experienced teachers alike. Over the years I have developed many materials for several courses that I teach regularly. I have taught AP Computer Science since 1987, College Math since Fall 1993 and AP Calculus since 1994.

These materials have been edited and re-edited for ease of use in the classroom every time I have a chance to teach these courses. I have had many requests to share my materials at the conferences I frequent, whence this website.