1 Star 0 Fork 26

yourkeychen/hyperpose

forked from TensorLayer/hyperpose 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
configure 1.27 KB
一键复制 编辑 原始数据 按行查看 历史
#!/bin/bash
set -e
if [ -d /usr/local/cuda ]; then
CUDA_HOME=/usr/local/cuda
fi
parse_args() {
for i in "$@"; do
case $i in
--prefix=*)
PREFIX="${i#*=}"
;;
--with-trace)
WITH_TRACE=1
;;
--build-fake)
BUILD_FAKE=1
;;
--with-cuda=*)
CUDA_HOME="${i#*=}"
echo "configure --with-cuda=$CUDA_HOME"
;;
*)
echo "unknown argument $i"
exit
;;
esac
done
}
CMAKE_FLAGS=
add_cmake_flag() {
echo "using $1=$2"
CMAKE_FLAGS="$CMAKE_FLAGS -D$1=$2"
}
add_cmake_flags() {
if [ "${BUILD_FAKE}" == 1 ]; then
add_cmake_flag BUILD_FAKE ON
fi
if [ "${WITH_TRACE}" == 1 ]; then
add_cmake_flag WITH_TRACE ON
fi
if [ ! -z "${CUDA_HOME}" ]; then
add_cmake_flag CUDA_TOOLKIT_ROOT_DIR $CUDA_HOME
add_cmake_flag CMAKE_CUDA_COMPILER $CUDA_HOME/bin/nvcc
fi
add_cmake_flag CMAKE_BUILD_TYPE Release
add_cmake_flag CMAKE_EXPORT_COMPILE_COMMANDS ON
add_cmake_flag CMAKE_INSTALL_PREFIX ${PREFIX}
add_cmake_flag EXECUTABLE_OUTPUT_PATH $PWD/bin
add_cmake_flag LIBRARY_OUTPUT_PATH $PWD/lib
}
parse_args $@
add_cmake_flags
cmake . $CMAKE_FLAGS
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/yourkeychen/hyperpose.git
git@gitee.com:yourkeychen/hyperpose.git
yourkeychen
hyperpose
hyperpose
master

搜索帮助