1 Star 0 Fork 23

NJ_Ceny/EpicFV

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
epic_fv 1.50 KB
一键复制 编辑 原始数据 按行查看 历史
xiao_foo 提交于 2021-01-20 15:48 . EpicFV add UI mode
#!/bin/bash
if [[ "${EPICFV_HOME}"x == "x" ]]; then
SHELLDIR="$(cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd)"
echo "EPIC set env: export EPICFV_HOME=$SHELLDIR"
export EPICFV_HOME=$SHELLDIR
fi
#remove last / in EPIC_HOME if exist
if [[ ${EPICFV_HOME} == */ ]]; then
export EPICFV_HOME=${EPICFV_HOME%?}
fi
export EPIC_FV_LOG="true"
export LD_LIBRARY_PATH="$EPICFV_HOME/binary/share/openmpi/lib:$LD_LIBRARY_PATH"
export OPAL_PREFIX="$EPICFV_HOME/binary/share/openmpi"
export PATH="$EPICFV_HOME/binary/bin:$PATH"
NUM_CORE=`grep -c ^processor /proc/cpuinfo`
IS_WORKER=""
WORKERS="4"
#if [ "$NUM_CORE" -lt "$WORKERS" ]; then
# WORKERS=$NUM_CORE
#fi
IS_FILE=""
FILE=""
IS_SESSION=""
IS_RESET=""
for arg; do
case "$arg" in
-worker) IS_WORKER="t" ;;
-f) IS_FILE="t" ;;
-session) IS_SESSION="t" ;;
-reset) IS_RESET="t" ;;
*)
if [ "${IS_WORKER}"x != "x" ]; then
WORKERS=$arg;
IS_WORKER="";
fi
if [ "${IS_FILE}"x != "x" ]; then
FILE=$arg;
IS_FILE="";
fi
if [ "${IS_SESSION}"x != "x" ]; then
export EPICFV_SESSION=$arg;
IS_SESSION="";
fi
esac
done
if [ "${IS_RESET}"x != "x" ]; then
rm -rf *_db;
rm -rf *_db.bak;
exit 0
fi
if [ "${FILE}"x != "x" ]; then
$EPICFV_HOME/binary/epic_fv_start $WORKERS $FILE
else
$EPICFV_HOME/binary/epic_fv_start
fi
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/nj-ceny/EpicFV.git
git@gitee.com:nj-ceny/EpicFV.git
nj-ceny
EpicFV
EpicFV
main

搜索帮助

0d507c66 1850385 C8b1a773 1850385