Installation Instructions

From MEG Core
Revision as of 16:48, 1 March 2019 by Nugenta (talk | contribs)
Jump to navigation Jump to search

Installing SAM from Source Code

Linux system (tested under CentOS 6.x, CentOS 7.x, Ubuntu 14.04 LTS, Ubuntu 16.04 LTS, Fedora 27)

 The latest source tarball is available here:  SAMsrcV3-20170205.tgz.
 Download and unpack with:
 tar -xzvf SAMsrcV3-20170205.tgz

MacOS Users using the clang compiler (tested under macOS 10.13.x)

 The latest source tarball is available here: SAMsrcV3-20170205_clang.tgz.
 Download and unpack with:
 tar -xzvf SAMsrcV3-20170205_clang.tgz

MacOS Users using the gcc-7 compiler (tested under macOS 10.13.x)

 The latest source tarball is available here:  SAMsrcV3-20170205_gcc-7.tgz.
 Download and unpack with:
 tar -xzvf SAMsrcV3-20170205_gcc-7.tgz

This will create a directory called SAMsrcV3. Within that directory is a config directory. You may need to change Makefile.site to ensure that SAM can find the fftw3 libraries. By default, the binaries will be installed in the SAMsrcV3/bin directory, this can be changed by editing the config/Makefile.config file. Once you have made any necessary alterations, from the SAMsrcV3 directory, type

 make

If you have any problems installing SAMsrcV3, please contact MEG Core staff for assistance.

Note that this source code, as delivered, is configured to make executables that are compatible with CTF MEG datasets. The software can, however, be configured to process 4D/BTi datasets. In order to compile the software for 4D/BTi compatibility, edit config/Makefile.config to uncomment the following line:

CFLAGS += -DBTI

The source code can then be compiled as above. If you have already compiled for CTF MEG, clear the previous installation using

 make clean

Using SAM on the NIH HPC equipment

The latest SAM software is now available on the NIH HPC systems (Felix, Helix, and Biowulf) as a module. At the prompt, type

 module load samsrcv3