This is a guest post by Kirill Berezovsky (Petrozavodsk State university), based on instructions he posted some time ago in the Gamess (US) list
First, you need to get some software!
• Fortran compiler: gfortran or Intel Fortran (ifort);
• Math library's: ACML (for AMD CPU’s), ATLAS or MKL (Intel Math Kernel Library);
• (optionally) MPI: Intel MPI, OpenMPI, MVAPICH2, ... (if you using MPI);
(bold is better)
- I’m not recommending the use of OpenMPI because it’s really slower than Intel MPI.
But, if you want to try use it, go to this site. This is a very short and informative solution for building 64-bit OpenMPI.
This software for non-commercial using you can get on
(Intel Fortran and MKL places in Intel® Fortran Composer XE 2013 for Linux)
As GAMESS (US) developers, I’m using:
• ifort 12.0.4 (places in Intel Fortran Composer XE 2011 update 4, “l_fcompxe_2011.4.191.tgz”)
• MKL 11.0 (places in Intel Fortran Composer XE 2013 initial release, “l_fcompxe_2013.0.079.tgz”).
Be aware, ifort 13.0.0 can’t compile some GAMESS (US) objects!
Anyway, you can install separate software from these archives – look hard when installing. It will safe HDD space and protect from some mistakes, maybe.
Great, when you have these packages, let’s start to configure your system!
You should be root, as I think that is better.
And before starting, configure memory by terminal commands. First, answer the question – how many RAM does your PC have? For example, my PC has 4 GB RAM, so in bytes it will be:
4 GB = 4*1024 MB = 4*1024*1024 KB = 4*1024*1024*1024 bytes = 4294967296 bytes.
And go on: 4294967296 bytes / 2 = 2147483648 bytes.
This number shows maximum size of 1 segment of shared memory.
Next, total size of shared memory in pages will be: 2147483648 / 4096 = 524288 pages.
This numbers you need to write in /etc/sysctl.conf:
• echo “kernel.shmmax=2147483648” >> /etc/sysctl.conf
• echo “kernel.shmall=524288” >> /etc/sysctl.conf
And restart your machine.
Install the packages!
1. It's better to use 64-bit Linux, whatever you like. I’m using Debian 6.0.7;
2. In terminal, install these packages (just in case):
apt-get install tcsh gcc g++ gfortran build-essential dpkg-dev binutils zlib1g-dev
3. Install Intel Fortan Composer XE 2011;
1. Unpack downloaded archive by: tar xvf l_fcompxe_2011.4.191.tar
2. Goto unpacked folder by: cd l_fcompxe_2011.4.191
3. Install by run: ./install.sh
4. ...And follow the instructions
4. Install GAMESS (US);
1. Get the GAMESS-archive;
2. Unpack it (default in /usr/local/);
3. Go to the GAMESS-folder and run script: ./config
4. Answer the questions:
1. Target machine name: linux64
2. GAMESS location: /usr/local/gamess
3. Build location: /usr/local/gamess
4. GAMESS executable version name (any name you want. In this example, we will use "cpu" as the name): cpu
5. Fortran compiler (choose what you use):
- ifort --> version : 12
- gfortran --> version (like 4.4) you can get if you run in other terminal by: gfortran -v
7. Math library location: /opt/intel/composerxe_2011/mkl (verify it for your installation!)
8. When it shows string which contains 'bin' and 'lib' then type: skip
9. If you are not using MPI then type: sockets and you'll finish configuration;
10. Else, if you are using MPI type: mpi
1. Next, choose MPI-program: impi
2. Select MPI location directory, and go on.
11. Answer “no” for “LIBCCHEM”-question. If you are using NVIDIA GPU for calculations, anyway answer “no” at this first configuration time go on and don’t forget to read important note after these steps.
5. Goto ddi folder by: cd ddi
6. Edit 'compddi'-script by: gedit compddi
7. Find and change strings:
1. set MAXCPUS=4 (number of cores, is it 4 in your machine?)
2. set MAXNODES=1 (for single node)
8. Run 'compddi'-script by: ./compddi
• If you're NOT using MPI, there will be file ddikick.x - move in by: mv ddikick.x .. (two dots means upper folder)
9. Go upper folder: cd ..
10. Then compile GAMESS (US) by: ./compall
11. Link by: ./lked gamess cpu which creates gamess.cpu.x file. Of course, you can name it as you want, not only 'cpu'
12. Edit 'rungms'-script:
- See here the rungms-script rewritten by Kirill.
Next you should create folders:
- mkdir /scr
- mkdir /scr/root
- mkdir /root/scr
Add system variables into the ~/.bashrc file:
To run GAMESS (US) just type:
/usr/local/gamess/rungms [input file] [optionally, the 'version name' of your gamess file ("cpu" in this example)]
just like this:
/usr/loca/gamess/rungms BSi85H95.inp cpu will run exactly the same.
For simple run edit ~/.bashrc like:
• gedit ~/.bashrc
• add line alias gamess=’/usr/local/gamess/rungms’
• apply changes by source ~/.bashrc
• and now you can run it by:
gamess BSi85H95.inp cpu