CHOMP installation

From SHARPEN

Jump to: navigation, search
Current page


Contents

External Libraries

  • CHOMP compilation is straightforward, but has dependencies, and compiling requires significant memory use.
  • In most cases, several of these dependencies will already be present on your system
  • Useful background reading for Linux/programming beginners
  • Blitz[1]: templating magic for fast array operations
  • Boost[2] for improving templating magic interface with code generation and exposing C++ to python
  • Boost-jam[3][4] an alternative to "make" for getting everything compiled and linked
  • Python[5], and the numpy [6] module are also required
  • iPython[7] is an improved python shell. Technically optional but very highly recommended.
  • GCC [8] By supporting precompiled headers, GCC versions > 4.1 improve long CHOMP compile times
  • libtool [9]. Required because we compile energy functions as shared libraries.
  • Known Compatible Library Combinations

Installation Instructions

The following instructions assume installation into a code directory

 
mkdir ~/code
cd ~/code
 

1. GCC > 4.1

GCC upgrade

2. Python >=2.5

Python installation

3. numpy

numpy installation

4. iPython

iPython installation

5. Boost

Boost unpacking

6. bjam

bjam installation

7. Blitz

Blitz installation

8. Libtool

Libtool installation

9. CHOMP

CHOMP download and compile

10. Set environment variables

Set environment variables

11. Good ways to get started.

Run through an interactive Python session
Run the test calculations in dist/script_test_suite
Try a calculation without using Python
Try tutorial scripts

For Developers

Troubleshooting

Personal tools