From 45fe118bd336eefa1277d1f4948397f303c6930d Mon Sep 17 00:00:00 2001 From: tlatorre Date: Tue, 14 May 2019 10:05:50 -0500 Subject: add instructions for compiling on the grid --- README | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/README b/README index 8d28c92..ec6864e 100644 --- a/README +++ b/README @@ -55,6 +55,26 @@ You will also need to edit ~/.bash_profile and add the following line: export LD_LIBRARY_PATH=$HOME/local/lib:$HOME/local/lib64 +Installing NLopt for the grid +============================= + +When running the fitter on the grid, it's necessary to compile NLopt as a +static library. + + $ curl -O -L https://github.com/stevengj/nlopt/archive/v2.6.1.tar.gz + $ tar -xzvf v2.6.1.tar.gz + $ cd nlopt-2.6.1 + $ mkdir build + $ cd build + $ cmake -DCMAKE_INSTALL_PREFIX=$HOME/local -DBUILD_SHARED_LIBS=OFF .. + $ make + $ make install + +and then you have to edit the Makefile to add: + + CFLAGS=-fdiagnostics-color -O2 -Wall -g -DSWAP_BYTES -I/home/tlatorre/local/include/ + LDLIBS=-fdiagnostics-color -lm -lgsl -lgslcblas -L/home/tlatorre/local/lib64 -l:libnlopt.a -lstdc++ + Fitting Events ============== -- cgit