![]() |
Prev | Next | run_cmake.sh |
verbose_makefile='no'
build_type='debug'
cmake_install_prefix="$HOME/prefix/cppad_mixed"
If
cmake_install_prefix
ends in /cppad_mixed
,
run_cmake.sh
will use a soft link from this prefix to
cmake_install_prefix.debug
or
cmake_install_prefix.release
depending on the choice for
build_type
.
build
directory to the debug or release version.
If you are using both a debug and release versions of cppad_mixed,
both versions of the
special requirements
will need to be installed.
bin/install_eigen.sh
uses
cmake_install_prefix/eigen
as the prefix for installing eigen.
specific_compiler='CC=gcc CXX=g++ FC=gfortran'
uses the gnu versions of these compilers.
The configuration will automatically find compilers that are not specified;
i.e., if
specific_compiler=''
extra_cxx_flags='-Wpedantic -std=c++11 -Wall -Wshadow -Wconversion'
cmake_libdir='lib64'
cppad_mixed.pc
is installed in the
cmake_install_prefix/cmake_libdir
directory.
ldlt_cholmod
LDLT factorization where possible.
Otherwise always use ldlt_eigen
for LDLT factorization.
ldlt_cholmod='yes'
no
when
build_type
is debug
and yes
when
build_type
is release
.
optimize_cppad_function='no'
for_hes_sparsity
to compute sparsity w.r.t. random
effects (otherwise use rev_hes_sparsity
).
for_hes_sparsity='yes'
cppad_mixed
,
set
build_type
to release
, include the -g
flag
in
extra_cxx_flags
. Then execute the following commands:
bin/install_cppad.sh
bin/run_cmake.sh
cd build; make program; cd ..
bin/program.sh test2run
where
program
is
ar1_xam
or capture_xam
and
test2run
is
normal
, callgrind
, or massif
.