Skip to content

Latest commit

 

History

History
54 lines (53 loc) · 1.42 KB

3.8-deepflame.md

File metadata and controls

54 lines (53 loc) · 1.42 KB

DeepFlame

Remove a conda env if needed

conda deactivate
conda env remove -n df-libtorch
conda clean -p -t --yes

Compiling Deepflame

Create a conda env named deepflame

conda create -n deepflame python=3.8 && conda activate deepflame

Do this if libtinfo version warnning occurs

cd $CONDA_PATH/envs/deepflame/lib && ln -fns /lib/x86_64-linux-gnu/libtinfo.so.6 ./libtinfo.so && \
ln -fns /lib/x86_64-linux-gnu/libtinfo.so.6 ./libtinfo.so.6

Install Pytorch for CUDA Or CPU platform

###################################################################

CUDA platform

conda install pytorch torchvision torchaudio pytorch-cuda=11.8 -c pytorch -c nvidia

Other platform

conda install pytorch torchvision torchaudio cpuonly -c pytorch

###################################################################

Other conda packages with specific version

conda install pybind11 eigen fmt=8.1.1 easydict
conda install -c cantera libcantera-devel=2.6.0

Compile Deepflame

cd /where/deepflame/source/directory && \
bash ./configure.sh --use_pytorch
source ./bashrc
. install.sh

Run DeepFlame

  • source openfoam env bashrc

source /opt/openfoam7/etc/bashrc
  • source deepflame env bashrc, echo $DF_ROOT is where your deepflame-dev install directory path

source $DF_ROOT/bashrc