Skip to content

Latest commit

 

History

History
74 lines (62 loc) · 1.91 KB

INSTALL.md

File metadata and controls

74 lines (62 loc) · 1.91 KB

Installation instructions

Packages and libraries

INCS = $(INCSEQ)
LIBS = $(LIBSEQ)
LIBSEQNEEDED = libseqneeded
  • install BLAS and LAPACK:
sudo apt-get install libblas-dev liblapack-dev
  • install cmake (and optionally ccmake, CMake curses interface):
sudo apt-get install cmake cmake-curses-gui

Compilation

  1. Create a build directory in the main directory:
mkdir build
  1. Move to the build directory:
cd build/
  1. Execute cmake (you may provide the paths to the libraries ASL, BQPD and MA57):
cmake -DBQPD=path -DMA57=path -DAMPLSOLVER=path -DCMAKE_BUILD_TYPE=[Release|Debug] ..
  1. (or) Use ccmake to provide the paths to the required and optional libraries:
ccmake ..
  1. Compile (in parallel: n being the number of threads, e.g. 6):
make -jn

To compile the code with different configurations, simply create a build directory for each configuration and perform instructions 1 to 5.

Unit tests

  1. Install the GoogleTest suite:
sudo apt-get install googletest
  1. Perform steps 2 and 3 with the flag
-DWITH_GTEST=ON
  1. Run the test suite:
./run_unotest

Autocompletion

To benefit from autocompletion, install the file uno_ampl-completion.bash:

sudo cp uno_ampl-completion.bash /etc/bash_completion.d/

and open a new terminal.