1 Star 1 Fork 0

deepmodeling/deepflame-dev

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
install.sh 1.37 KB
一键复制 编辑 原始数据 按行查看 历史
maorz1998 提交于 2023-12-23 12:18 . fix bugs in 1223
#!/bin/sh
print_finish() {
if [ ! -z "$LIBTORCH_ROOT" ]; then
echo " = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = ="
echo "| deepflame (linked with libcantera and libtorch) compiled successfully! Enjoy!! |"
elif [ ! -z "$PYTHON_LIB_DIR" ]; then
echo " = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = ="
echo "| deepflame (linked with libcantera and pytorch) compiled successfully! Enjoy!! |"
else
echo " = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = ="
echo "| deepflame (linked with libcantera) compiled successfully! Enjoy!! |"
fi
if [ ! -z "$AMGX_DIR" ]; then
echo "| select the GPU solver coupled with AMGx library to solve PDE |"
fi
echo " = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = ="
}
if [ $USE_LIBTORCH = true ]; then
cd "$DF_SRC/dfChemistryModel/DNNInferencer"
mkdir build
cd build
cmake ..
make
export LD_LIBRARY_PATH=$DF_SRC/dfChemistryModel/DNNInferencer/build:$LD_LIBRARY_PATH
fi
if [ $USE_GPUSOLVER = true ]; then
cd "$DF_ROOT/src_gpu"
mkdir build
cd build
cmake ..
make -j
export LD_LIBRARY_PATH=$DF_ROOT/src_gpu/build:$LD_LIBRARY_PATH
fi
cd $DF_ROOT
./Allwmake -j && print_finish
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/deepmodeling/deepflame-dev.git
git@gitee.com:deepmodeling/deepflame-dev.git
deepmodeling
deepflame-dev
deepflame-dev
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385