- Notifications
You must be signed in to change notification settings - Fork 12
Installing on VMs
UCLGuichard edited this page Nov 16, 2017 · 11 revisions
Here are the steps I followed in my attempts to install sopt and purify on various machines and OSes. They shouldn't be taken as strict guidelines but more as indications of what has worked or not.
apt-get install cmakeapt-get install fftw3apt-get install libtiff5apt-get install mpiapt-get install libeigen3-devapt-get install libspdlog-dev- Install cfitsio:
cd /usr/local/src/wget ftp://heasarc.gsfc.nasa.gov/software/fitsio/c/cfitsio3270.tar.gz -O cfitsio3270.tar.gztar zxvf cfitsio3270.tar.gzcd cfitsio./configure --prefix=/usrmakemake installmake clean
apt-get install libyaml-cpp-devapt-get install libccfits-dev- Added these lines at the top of the
CMakeLists.txtset(FFTW3_INCLUDE_DIR "/usr/lib/x86_64-linux-gnu")set(FFTW3_LIBRARIES "/usr/lib/x86_64-linux-gnu”)set(MPI_C_LIBRARIES "/usr/lib/x86_64-linux-gnu")set(MPI_C_INCLUDE_PATH "/usr/lib/x86_64-linux-gnu")set(MPI_CXX_LIBRARIES "/usr/lib/x86_64-linux-gnu")set(MPI_CXX_INCLUDE_PATH "/usr/lib/x86_64-linux-gnu”)
apt-get install libboost-dev
pacman -Sy cmakepacman -Sy makepacman -Sy emacspacman -Sy gitpacman -Sy pkgconfigpacman -Sy gccpacman -Sy libtiffpacman -Sy boostpacman -Sy eigenpacman -Sy fftwpacman -Sy llvmpacman -Sy openmpipacman -Sy cfitsiopacman -Sy ccfitspacman -Sy yaml-cpp
Reinstall OSX
brew install makebrew install gccbrew install libtiffbrew install open-mpibrew install ccfitsbrew install bootsbrew install spdlogpip install casacore- Create BICO
-
git clonesopt from astro-informatics -
git cloneGreatCMakeCookOff and make changes below - Build sopt
-
git clonepurify from astro-informatics
For working on purify benchmarks only
- In GreatCMakeCookOff/modules/LookUpGBenchmark.cmake change:
-
- GIT_REPOSITORY https://github.com/mdavezac/benchmark.git
-
- GIT_REPOSITORY https://github.com/google/benchmark.git
-
- In purify/CMakeLists.txt set the following:
- option(tests “Enable testing” off)
- option(examples “Compile examples” off)
- option(benchmarks “Enable benchmarking” on)
- option(data “Download measurement set for testing” off)
- option(openmp “Enable OpenMP” on)
- option(logging “Enable logging” on)
- option(dompi “Enable MPI” on)
- option(doaf “Enable ArrayFire” off)
- option(docasa “Enable CASA” on)