![]() |
cacao
Release 0.1.03-dev
Compute And Control For Adaptive Optics
|
git clone --recursive https://github.com/cacao-org/milk milk cd milk mkdir _build cd _build cmake .. # If you use NVIDIA GPUs, install cuda and magma libraries, and use "cmake .. -DUSE_MAGMA=ON" make sudo make install
You may need to add /usr/local/lib to LD_LIBRARY_PATH environment variable:
echo "/usr/local/lib" > usrlocal.conf sudo mv usrlocal.conf /etc/ld.so.conf.d/ sudo ldconfig -v
OPTIONAL: Create tmpfs disk for high performance I/O:
echo "tmpfs /milk/shm tmpfs rw,nosuid,nodev" | sudo tee -a /etc/fstab sudo mkdir -p /milk/shm sudo mount /milk/shm
Libraries required :
Install above libraries (centOS):
sudo yum install readline-devel flex bison-devel fftw3-devel gsl-devel
Install above libraries (Ubuntu):
sudo apt-get install libcfitsio3 libcfitsio3-dev libreadline6-dev libncurses5-dev libfftw3-dev libgsl0-dev flex bison
For reading and writing FITS image files
./configure --prefix=/usr make sudo make install
Required libraries:
configure script uses pkg-config to find the package. You need to add in .bashrc :
export PKG_CONFIG_PATH=/usr/local/magma/lib/pkgconfig
To install independant versions on the same system, download source code in separate source directories:
cd $HOME/src git clone --recursive https://github.com/milk-org/milk milk-1 git clone --recursive https://github.com/milk-org/milk milk-2
Compile each copy with a different target directory :
cd $HOME/src/milk-1 mkdir _build cd _build cmake -DCMAKE_INSTALL_PREFIX=/usr/local/milk-1 .. sudo make install
cd $HOME/src/milk-2 mkdir _build cd _build cmake -DCMAKE_INSTALL_PREFIX=/usr/local/milk-2 .. sudo make install
To make version 1 the default on the system :
sudo ln -s /usr/local/milk-1 /usr/local/milk
To run an instance of version 2 :
LD_LIBRARY_PATH=/usr/local/milk-2/lib PATH=/usr/local/milk-2/bin milk
Additionally, each version may have its own independent shared memory space for streams :
MILK_SHM_DIR=/milk-2/shm LD_LIBRARY_PATH=/usr/local/milk-2/lib PATH=/usr/local/milk-2/bin milk