Skip to content

Instantly share code, notes, and snippets.

@eguillot
Last active October 11, 2023 22:36
Show Gist options
  • Select an option

  • Save eguillot/5d8b19f65cee1d161cfde9a8b46c721c to your computer and use it in GitHub Desktop.

Select an option

Save eguillot/5d8b19f65cee1d161cfde9a8b46c721c to your computer and use it in GitHub Desktop.
Install MesoStar SOLSTICE
# paquets de base
sudo apt install libyaml-dev cmake build-essential libomp-dev librandom123-dev ninja-build aria2 git
# Moteur de lancer RT d'intel
# à adapter depuis https://github.com/embree/embree/releases
# /!\ Solstice binaire utilise la version 3.x qqchose, alors que seuls des versions 4.x sont compatibles apple silicon en natif. => compatibilité à vérifier
aria2c https://github.com/embree/embree/releases/download/v4.1.0/embree-4.1.0.x86_64.linux.tar.gz
tar -xvf embree-4.1.0.x86_64.linux.tar.gz
###########
# récup des dépots des composants
# soit via https en annonyme
# soit via authentification compte gitlab
###########
#git clone https://gitlab.com/vaplv/rcmake.git
git clone [email protected]:vaplv/rcmake.git
#git clone https://gitlab.com/vaplv/rsys.git
git clone [email protected]:vaplv/rsys.git
git clone https://gitlab.com/meso-star/star-3dut.git
git clone https://gitlab.com/meso-star/star-sp.git
git clone https://gitlab.com/meso-star/star-sf.git
git clone https://github.com/AngusJohnson/Clipper2.git
git clone https://gitlab.com/vaplv/polygon.git
git clone https://gitlab.com/meso-star/star-cpr.git
git clone https://gitlab.com/meso-star/star-3d.git
git clone https://gitlab.com/meso-star/solstice-solver.git
git clone https://gitlab.com/meso-star/solstice-anim.git
git clone https://gitlab.com/meso-star/solstice.git
# option : SLEEF is a library that implements vectorized versions of C standard math functions. This library also includes DFT subroutines
git clone https://github.com/shibatch/sleef
###########
# Compilation RCmake et installation globale
###########
cd rcmake
mkdir build-dir
cd build-dir
cmake ../cmake/
make all -j 16
sudo make install
cd ../..
# compilation RSys
cd rsys/cmake
cmake -DRCMake_DIR=../../rcmake/cmake/ -DRCMAKE_SOURCE_DIR=../../rcmake/cmake .
make all -j 16
sudo make install
cd ../..
# compilation solstice-anim
cd solstice-anim/cmake
cmake CMakeLists.txt
make all
sudo make install
cd ../..
# compilation star-sp
cd star-sp/cmake
cmake CMakeLists.txt
make all
sudo make install
cd ../..
# option : RSIMD utilisant SLEEF
cd sleef && mkdir build && cd build
cmake ..
make -j 1
sudo make install
cd ../..
# compilation RSIMD
cd rsimd/cmake
cmake CMakeLists.txt
make all -j 4
sudo make install
cd ../..
# compilation star-sf
cd star-sf/cmake/
cmake CMakeLists.txt
make all -j 4
sudo make install
cd ../..
# compilation star-sp
cd star-sp/cmake/
cmake .
make all -j 16
sudo make install
cd ../..
# compilation star-3dut
cd star-3dut/cmake
cmake .
make all -j 16
sudo make install
cd ../..
# compilation polygon
cd polygon/cmake/
cmake CMakeLists.txt
make all -j 4
sudo make install
cd ../..
# compilation CLIPPER2
cd Clipper2
cd CPP/Tests/googletest/
git submodule init
git submodule update
cd ../../..
cd CPP
cmake CMakeLists.txt
make all -j 4
sudo make install
cd ../..
# compilation star-cpr
cd star-cpr/cmake/
## Remplacer #find_package(Clipper2 1.2 REQUIRED)
## par find_package(PkgConfig REQUIRED)
## pkg_check_modules(Clipper2 REQUIRED Clipper2)
cmake .
make all -j 16
sudo make install
cd ../..
# compilation star-3d
cd star-3d/cmake/
cmake -DEmbree_DIR=../../embree-4.1.0.x86_64.linux/lib/cmake/embree-4.1.0/ .
make all -j 16
sudo make install
cd ../..
# compilation solstice-solver
cd solstice-solver/cmake/
cmake -DStarCPR_INCLUDE_DIR=../../star-cpr/src/ .
make all -j 16
#### problème avec scpr_polygon qui est inconnu :(
sudo make install
cd ../..
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment