Skip to content

Commit

Permalink
Install SuiteSparse and Sundials in common location in docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
tlestang committed Jun 5, 2020
1 parent 20a4d16 commit 17cae03
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions build_manylinux_wheels/install_sundials.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,21 @@ for dir in SuiteSparse_config AMD COLAMD BTF KLU
do
cd $SUITESPARSE_DIR/$dir;
make library
make install INSTALL=$HOME/.local
make install INSTALL=/usr
cd ../
done

KLU_INCLUDE_DIR=$HOME/.local/include
KLU_LIBRARY_DIR=$HOME/.local/lib
mkdir -p $SUITESPARSE_DIR/build_sundials
cd $SUITESPARSE_DIR/build_sundials
KLU_INCLUDE_DIR=/usr/include
KLU_LIBRARY_DIR=/usr/lib
mkdir -p /deps/build_sundials
cd /deps/build_sundials
cmake -DLAPACK_ENABLE=ON\
-DSUNDIALS_INDEX_SIZE=32\
-DEXAMPLES_ENABLE:BOOL=OFF\
-DKLU_ENABLE=ON\
-DKLU_INCLUDE_DIR=$KLU_INCLUDE_DIR\
-DKLU_LIBRARY_DIR=$KLU_LIBRARY_DIR\
-DCMAKE_INSTALL_PREFIX=$HOME/.local\
-DCMAKE_INSTALL_PREFIX=/usr\
$SUNDIALS_DIR
make install

0 comments on commit 17cae03

Please sign in to comment.