29 Star 171 Fork 23

GVP芯华章科技股份有限公司 / 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
C++
1
https://gitee.com/x-epic/EpicFV.git
git@gitee.com:x-epic/EpicFV.git
x-epic
EpicFV
EpicFV
main

搜索帮助