This text has been the introduction for the presentation of the first compilation of Gamess for Raspberry Pi 2B in 2013
Gamess-US: automatic compilation on Raspberry Pi 2B
Motivation:See main part for compiling Gamess-US. I pay homage to Mark Gordon and his team (tongue in cheek!): A full Gamess on a credit card computer, smaller is impossible (until next year!) ...
Raspberry Pi [RPi] 2, Model B, the 35 $ computer, is available since several years. Many educational applications have been described. In November 2013, even the huge Wolfram Mathematica has been donated to RPi as a free programming environment and is included in the Raspbian download, see below!
Here we show that RPi can also be used for "low cost" applications and demonstrations of Quantum Chemistry. There is no "highly expensive" excuse anymore for not doing simple quantum chemical computations and discuss their results. As the samples demonstrate, meaningfull chemistry can be shown in seconds to minutes, i.e. during a talk or lab session.- Since we apply the Debian derived Raspbian as operating system, the sripts in these pages need only minimal change for compiling and running Gamess on RPi. Hence, all software can be had for free and "costs" are limited to acquiring a Raspberry Pi (with at least 8GB SD card) and connecting a monitor or old TV (HDMI), a used keyboard and mouse (both USB), and a RJ45 internet cable or WiFi USB stick (with RPi 3B there is on-board WiFi and Bluetooth).
The Gamess distribution has several "DOC" files, explaining details, especially how to compose an inputfile for the specific task you have in mind. Simple visualization tools for the results - structure, density contours, electrostatic maps - are within Gamess. More elaborate visualizers for RPi, e.g. with Mathematica™, will be described shortly.
Meanwhile (2016) Raspberry Pi 3, Model B has appeared with a four-core CPU, double main memory, and higher speed, but same price, now Raspbian with NOOBS 3.0.0, 2018-11-16. It can make and run Gamess in less than half the time. Unfortunately, it runs only on one core with the software Gamess offers for "parallel" computation within one SMP enclosure of Raspi's special processor (this is also true for Mathematica™, now version 11. I do not have the time to activate threading to 4 cores. Perhaps, somebody will be doing it). Gamess has tripled its size since version 1 MAY 2013. However, the newest version 13 SEP 2018 (R3) does not compile correctly with gfortran 4.9 on RPi 3B. Since nobody will do professional work on a Raspberry Pi, we just offer Gamess-13 again, which contains all features expected for the didactical scope of this site.
Our script automatically builds a new version of Gamess-US on RPi's Linux system. After compilation of several hundred fortran source files with gfortran 4.9, these are linked to gamess.00.x, the test suite of the gamess package run and results checked.
Here are the details: For the following to make sense, we assume that you have obtained a password and downloaded gamess-current.tar.gz or gamess-current.tar.Z from Gamess-US into your home directory /home/$USER, usually /home/pi.
Now download and save the script raspigam13 also in /home/$USER
Overview of procedure:Running the script raspigam13 automatically downloads all necessary programs and libraries (it also downloads gamess-current13.tar.gz with the older version 1 MAY 2013). Then it starts a build script buildrpgamess13. This unpacks the Gamess tarball, edits all required scripts from the Gamess-US distribution to reflect RPi's environment, and finally builds gamess.00.x. This takes about 4 hours! You can run it over night because no intervention is required and Raspberry Pi 3 consumes about 4-5 Watts under full load! When successfully finished, the test suite starts, running 47 short Gamess jobs which engage a large number of the computational tools embedded in Gamess. This takes another 26 min. Finally, all results are compared to a table of correct numerical values. This ends the fully automated procedure.
All timings now pertain to RPi 3B: In about 4.5 hours, gamess.00.x and some other execs are made and Checktst tells you: All 47 test results are correct. Congratulations! your Raspberry Pi now groks Gamess which is permanently installed on RPi's SD card. Here is the summary of a build session with RPi 2B.
2. Attempt: (Much preferred, same result!) If you want to reduce the time for installing and testrunning Gamess on the RPi from 4.5 hours to
You can download several runs of practical interest from RPi Gamess in the samples directory (Note: in this, all timings are for the RPi 2B. They are halved for RPi 3B). Eg computing the structure, the energy, orbitals and several properties of benzene takes 3.6 min, for SiF4 62 sec, for Ethene 14.6 sec (all approx. 20 times slower than on a i7-2900, 3.4 GHz). The longest job is SiF4_g3mp2. It accurately computes the formation enthalpy of gaseous SiF4 at 0 and 298 K with a complex series of routines, taking 144 min on the RPi B2.
Important note:After shutting down and later restarting RPi, you must set a "System V Memory" allocation. Put this command in before you start a gamess job (only once per session):
sudo /sbin/sysctl -w kernel.shmmax=500000000<enter>
Make sure you count the zeros exactly: It's 500 million! Perhaps you put this command into your
Now you can run new jobs by composing correct inputfiles, jobname.inp, in ~/gamess, see .inp files in samples or exam??.inp in ~/gamess/tests/standard, and the commandline:
./rungms jobname > jobname.log<enter>
The output file *.log is a text file and can be studied with a text reader, editor, printed out, or read-in to a visualizer program.
Interesting development: From WebMO-14.0, the prize-winning, web-based interface for computational chemistry programs, now has an App for iPhone/iPad. This allows to compose e.g. a Gamess computation from where your mobile is, send it to your Raspberry Pi (in the local network or on the web with a forwarded IP) to run the job and get the results back for visualizing and printing!
back to QC