Skip to content
Justus Calvin edited this page Feb 5, 2015 · 6 revisions

Madness on a Mac Build MADNESS on Mac OS X

Table of Contents

Software

MADNESS is supported on OS X 10.9 (Mavericks) and 10.10 (Yosemite). While it may be possible to build and run MADNESS on earlier versions of OS X, that can change at any time. The main limitation is the availability of a C++11 compliant compiler.

Required

  • Apple Command Line Tools
  • MPI-2
  • BLAS and LAPACK (Accelerate framework included with OS X)
  • GNU Autotools
    • autoconf 2.59 or later
    • automake 1.11 or later
  • git

Recommended

  • Package management software
    • MacPorts
    • Homebrew

Optional

  • libxc
  • MADxc
  • TBB
  • Elemental
  • Eigen 3 (deprecated)
  • Gperftools (not recommended)
  • Doxygen

Supported Compiler

The following compiles have been tested with MADNESS on OS X and are known to work.

  • Apple's Clang 5.0 (svn 3.3) and later -- Preferred
  • Intel Composer XE 2013 SP1, Update 2 and later
WARNING: Do not use GNU GCC compilers that you build yourself, with MacPorts, or with Homebrew. They have significant compatibility issues on Macs. While you may be able to compile MADNESS with these compilers, it may result in strange runtime behavior.

Installing Apple Command Line Tools

OS X 10.9 Mavericks and later

In Terminal run:

$ xcode-select --install

Mountain Lion and earlier

Download and install Command Line Tools from Apple's Developer web site.

MacPorts

MacPorts is a command-line tool that automates the process of downloading, configuring, installing, and updating open-source software in OS X. Most of the software required by MADNESS is available through MacPorts. To install MacPorts:

  1. Install MacPorts
  2. Once MacPorts is installed, in terminal run:
$ sudo port selfupdate

Note: If you are behind a firewall or proxy and having trouble syncing portfiles, you can use the alternate download method described here.

You can install the remaining software need by MADNESS with MacPorts.

$ sudo port install autoconf automake libtool git doxygen mpich

MADNESS Installation

Download

In Terminal:

$ mkdir madness
$ cd madness
$ git clone https://github.com/m-a-d-n-e-s-s/madness.git src
$ cd src
$ ./autogen.sh
$ cd ..

Configure

$ mkdir build
$ cd build
$ ../src/configure \
    CC=/usr/bin/clang \
    CXX=/usr/bin/clang++ \
    MPICC=/path/to/mpicc \
    MPICXX=/path/to/mpicxx

Build

$ make -j