Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Paddle
提交
f66a2040
P
Paddle
项目概览
PaddlePaddle
/
Paddle
1 年多 前同步成功
通知
2302
Star
20931
Fork
5422
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1423
列表
看板
标记
里程碑
合并请求
543
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
Paddle
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1,423
Issue
1,423
列表
看板
标记
里程碑
合并请求
543
合并请求
543
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
f66a2040
编写于
3月 09, 2023
作者:
P
pangyoki
提交者:
GitHub
3月 09, 2023
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add WITH_CUDNN_DSO in paddle_build.sh (#51293)
上级
ef1aa8ce
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
8 addition
and
4 deletion
+8
-4
paddle/scripts/paddle_build.sh
paddle/scripts/paddle_build.sh
+8
-4
未找到文件。
paddle/scripts/paddle_build.sh
浏览文件 @
f66a2040
...
...
@@ -203,6 +203,7 @@ function cmake_base() {
-DCMAKE_BUILD_TYPE=
${
CMAKE_BUILD_TYPE
:-
Release
}
${
PYTHON_FLAGS
}
-DWITH_GPU=
${
WITH_GPU
:-
OFF
}
-DWITH_CUDNN_DSO=
${
WITH_CUDNN_DSO
:-
OFF
}
-DWITH_TENSORRT=
${
WITH_TENSORRT
:-
ON
}
-DWITH_ROCM=
${
WITH_ROCM
:-
OFF
}
-DWITH_CINN=
${
WITH_CINN
:-
OFF
}
...
...
@@ -261,6 +262,7 @@ EOF
-DCMAKE_BUILD_TYPE
=
${
CMAKE_BUILD_TYPE
:-
Release
}
\
${
PYTHON_FLAGS
}
\
-DWITH_GPU
=
${
WITH_GPU
:-
OFF
}
\
-DWITH_CUDNN_DSO
=
${
WITH_CUDNN_DSO
:-
OFF
}
\
-DWITH_TENSORRT
=
${
WITH_TENSORRT
:-
ON
}
\
-DWITH_ROCM
=
${
WITH_ROCM
:-
OFF
}
\
-DWITH_CINN
=
${
WITH_CINN
:-
OFF
}
\
...
...
@@ -3640,17 +3642,18 @@ function run_setup(){
echo
"if you use setup.py to compile,please export envs as following in /paddle ..."
cat
<<
EOF
========================================
export CMAKE_BUILD_TYPE=
${
CMAKE_BUILD_TYPE
:-
Release
}
WITH_GPU=
${
WITH_GPU
:-
OFF
}
WITH_TENSORRT=
${
WITH_TENSORRT
:-
ON
}
WITH_ROCM=
${
WITH_ROCM
:-
OFF
}
WITH_CINN=
${
WITH_CINN
:-
OFF
}
WITH_DISTRIBUTE=
${
distibuted_flag
}
WITH_MKL=
${
WITH_MKL
:-
ON
}
WITH_AVX=
${
WITH_AVX
:-
OFF
}
CUDA_ARCH_NAME=
${
CUDA_ARCH_NAME
:-
All
}
NEW_RELEASE_PYPI=
${
NEW_RELEASE_PYPI
:-
OFF
}
NEW_RELEASE_ALL=
${
NEW_RELEASE_ALL
:-
OFF
}
NEW_RELEASE_JIT=
${
NEW_RELEASE_JIT
:-
OFF
}
WITH_PYTHON=
${
WITH_PYTHON
:-
ON
}
CUDNN_ROOT=/usr/ WITH_TESTING=
${
WITH_TESTING
:-
ON
}
WITH_COVERAGE=
${
WITH_COVERAGE
:-
OFF
}
WITH_INCREMENTAL_COVERAGE=
${
WITH_INCREMENTAL_COVERAGE
:-
OFF
}
CMAKE_MODULE_PATH=/opt/rocm/hip/cmake CMAKE_EXPORT_COMPILE_COMMANDS=ON WITH_CONTRIB=
${
WITH_CONTRIB
:-
ON
}
WITH_INFERENCE_API_TEST=
${
WITH_INFERENCE_API_TEST
:-
ON
}
WITH_INFRT=
${
WITH_INFRT
:-
OFF
}
INFERENCE_DEMO_INSTALL_DIR=
${
INFERENCE_DEMO_INSTALL_DIR
}
PY_VERSION=
${
PY_VERSION
:-
3
.7
}
CMAKE_INSTALL_PREFIX=
${
INSTALL_PREFIX
:-
/paddle/build
}
WITH_PSCORE=
${
pscore_flag
}
WITH_PSLIB=
${
pslib_flag
}
WITH_GLOO=
${
gloo_flag
}
LITE_GIT_TAG=release/v2.10 WITH_XPU=
${
WITH_XPU
:-
OFF
}
WITH_MLU=
${
WITH_MLU
:-
OFF
}
WITH_IPU=
${
WITH_IPU
:-
OFF
}
WITH_CNCL=
${
WITH_CNCL
:-
OFF
}
XPU_SDK_ROOT=
${
XPU_SDK_ROOT
:-
""
}
WITH_LITE=
${
WITH_LITE
:-
OFF
}
WITH_XPU_BKCL=
${
WITH_XPU_BKCL
:-
OFF
}
WITH_ARM=
${
WITH_ARM
:-
OFF
}
WITH_ASCEND=
${
WITH_ASCEND
:-
OFF
}
WITH_ASCEND_CL=
${
WITH_ASCEND_CL
:-
OFF
}
WITH_ASCEND_INT64=
${
WITH_ASCEND_INT64
:-
OFF
}
WITH_STRIP=
${
WITH_STRIP
:-
ON
}
ON_INFER=
${
ON_INFER
:-
OFF
}
WITH_HETERPS=
${
WITH_HETERPS
:-
OFF
}
WITH_GPU_GRAPH=
${
WITH_GPU_GRAPH
:-
OFF
}
WITH_FLUID_ONLY=
${
WITH_FLUID_ONLY
:-
OFF
}
CUDA_ARCH_BIN=
${
CUDA_ARCH_BIN
}
WITH_RECORD_BUILDTIME=
${
WITH_RECORD_BUILDTIME
:-
OFF
}
WITH_UNITY_BUILD=
${
WITH_UNITY_BUILD
:-
OFF
}
WITH_ONNXRUNTIME=
${
WITH_ONNXRUNTIME
:-
OFF
}
WITH_CUDNN_FRONTEND=
${
WITH_CUDNN_FRONTEND
:-
OFF
}
export CMAKE_BUILD_TYPE=
${
CMAKE_BUILD_TYPE
:-
Release
}
WITH_GPU=
${
WITH_GPU
:-
OFF
}
WITH_
CUDNN_DSO=
${
WITH_CUDNN_DSO
:-
OFF
}
WITH_
TENSORRT=
${
WITH_TENSORRT
:-
ON
}
WITH_ROCM=
${
WITH_ROCM
:-
OFF
}
WITH_CINN=
${
WITH_CINN
:-
OFF
}
WITH_DISTRIBUTE=
${
distibuted_flag
}
WITH_MKL=
${
WITH_MKL
:-
ON
}
WITH_AVX=
${
WITH_AVX
:-
OFF
}
CUDA_ARCH_NAME=
${
CUDA_ARCH_NAME
:-
All
}
NEW_RELEASE_PYPI=
${
NEW_RELEASE_PYPI
:-
OFF
}
NEW_RELEASE_ALL=
${
NEW_RELEASE_ALL
:-
OFF
}
NEW_RELEASE_JIT=
${
NEW_RELEASE_JIT
:-
OFF
}
WITH_PYTHON=
${
WITH_PYTHON
:-
ON
}
CUDNN_ROOT=/usr/ WITH_TESTING=
${
WITH_TESTING
:-
ON
}
WITH_COVERAGE=
${
WITH_COVERAGE
:-
OFF
}
WITH_INCREMENTAL_COVERAGE=
${
WITH_INCREMENTAL_COVERAGE
:-
OFF
}
CMAKE_MODULE_PATH=/opt/rocm/hip/cmake CMAKE_EXPORT_COMPILE_COMMANDS=ON WITH_CONTRIB=
${
WITH_CONTRIB
:-
ON
}
WITH_INFERENCE_API_TEST=
${
WITH_INFERENCE_API_TEST
:-
ON
}
WITH_INFRT=
${
WITH_INFRT
:-
OFF
}
INFERENCE_DEMO_INSTALL_DIR=
${
INFERENCE_DEMO_INSTALL_DIR
}
PY_VERSION=
${
PY_VERSION
:-
3
.7
}
CMAKE_INSTALL_PREFIX=
${
INSTALL_PREFIX
:-
/paddle/build
}
WITH_PSCORE=
${
pscore_flag
}
WITH_PSLIB=
${
pslib_flag
}
WITH_GLOO=
${
gloo_flag
}
LITE_GIT_TAG=release/v2.10 WITH_XPU=
${
WITH_XPU
:-
OFF
}
WITH_MLU=
${
WITH_MLU
:-
OFF
}
WITH_IPU=
${
WITH_IPU
:-
OFF
}
WITH_CNCL=
${
WITH_CNCL
:-
OFF
}
XPU_SDK_ROOT=
${
XPU_SDK_ROOT
:-
""
}
WITH_LITE=
${
WITH_LITE
:-
OFF
}
WITH_XPU_BKCL=
${
WITH_XPU_BKCL
:-
OFF
}
WITH_ARM=
${
WITH_ARM
:-
OFF
}
WITH_ASCEND=
${
WITH_ASCEND
:-
OFF
}
WITH_ASCEND_CL=
${
WITH_ASCEND_CL
:-
OFF
}
WITH_ASCEND_INT64=
${
WITH_ASCEND_INT64
:-
OFF
}
WITH_STRIP=
${
WITH_STRIP
:-
ON
}
ON_INFER=
${
ON_INFER
:-
OFF
}
WITH_HETERPS=
${
WITH_HETERPS
:-
OFF
}
WITH_GPU_GRAPH=
${
WITH_GPU_GRAPH
:-
OFF
}
WITH_FLUID_ONLY=
${
WITH_FLUID_ONLY
:-
OFF
}
CUDA_ARCH_BIN=
${
CUDA_ARCH_BIN
}
WITH_RECORD_BUILDTIME=
${
WITH_RECORD_BUILDTIME
:-
OFF
}
WITH_UNITY_BUILD=
${
WITH_UNITY_BUILD
:-
OFF
}
WITH_ONNXRUNTIME=
${
WITH_ONNXRUNTIME
:-
OFF
}
WITH_CUDNN_FRONTEND=
${
WITH_CUDNN_FRONTEND
:-
OFF
}
========================================
EOF
echo
"if you use cmake to compile,please Configuring cmake in /paddle/build ..."
cat
<<
EOF
========================================
cmake .. -DCMAKE_BUILD_TYPE=
${
CMAKE_BUILD_TYPE
:-
Release
}
-DWITH_GPU=
${
WITH_GPU
:-
OFF
}
-DWITH_TENSORRT=
${
WITH_TENSORRT
:-
ON
}
-DWITH_ROCM=
${
WITH_ROCM
:-
OFF
}
-DWITH_CINN=
${
WITH_CINN
:-
OFF
}
-DWITH_DISTRIBUTE=
${
distibuted_flag
}
-DWITH_MKL=
${
WITH_MKL
:-
ON
}
-DWITH_AVX=
${
WITH_AVX
:-
OFF
}
-DCUDA_ARCH_NAME=
${
CUDA_ARCH_NAME
:-
All
}
-DNEW_RELEASE_PYPI=
${
NEW_RELEASE_PYPI
:-
OFF
}
-DNEW_RELEASE_ALL=
${
NEW_RELEASE_ALL
:-
OFF
}
-DNEW_RELEASE_JIT=
${
NEW_RELEASE_JIT
:-
OFF
}
-DWITH_PYTHON=
${
WITH_PYTHON
:-
ON
}
-DCUDNN_ROOT=/usr/ -DWITH_TESTING=
${
WITH_TESTING
:-
ON
}
-DWITH_COVERAGE=
${
WITH_COVERAGE
:-
OFF
}
-DWITH_INCREMENTAL_COVERAGE=
${
WITH_INCREMENTAL_COVERAGE
:-
OFF
}
-DCMAKE_MODULE_PATH=/opt/rocm/hip/cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DWITH_CONTRIB=
${
WITH_CONTRIB
:-
ON
}
-DWITH_INFERENCE_API_TEST=
${
WITH_INFERENCE_API_TEST
:-
ON
}
-DWITH_INFRT=
${
WITH_INFRT
:-
OFF
}
-DINFERENCE_DEMO_INSTALL_DIR=
${
INFERENCE_DEMO_INSTALL_DIR
}
-DPY_VERSION=
${
PY_VERSION
:-
3
.7
}
-DCMAKE_INSTALL_PREFIX=
${
INSTALL_PREFIX
:-
/paddle/build
}
-DWITH_PSCORE=
${
pscore_flag
}
-DWITH_PSLIB=
${
pslib_flag
}
-DWITH_GLOO=
${
gloo_flag
}
-DLITE_GIT_TAG=release/v2.10 -DWITH_XPU=
${
WITH_XPU
:-
OFF
}
-DWITH_MLU=
${
WITH_MLU
:-
OFF
}
-DWITH_IPU=
${
WITH_IPU
:-
OFF
}
-DWITH_CNCL=
${
WITH_CNCL
:-
OFF
}
-DXPU_SDK_ROOT=
${
XPU_SDK_ROOT
:-
""
}
-DWITH_LITE=
${
WITH_LITE
:-
OFF
}
-DWITH_XPU_BKCL=
${
WITH_XPU_BKCL
:-
OFF
}
-DWITH_ARM=
${
WITH_ARM
:-
OFF
}
-DWITH_ASCEND=
${
WITH_ASCEND
:-
OFF
}
-DWITH_ASCEND_CL=
${
WITH_ASCEND_CL
:-
OFF
}
-DWITH_ASCEND_INT64=
${
WITH_ASCEND_INT64
:-
OFF
}
-DWITH_STRIP=
${
WITH_STRIP
:-
ON
}
-DON_INFER=
${
ON_INFER
:-
OFF
}
-DWITH_HETERPS=
${
WITH_HETERPS
:-
OFF
}
-DWITH_GPU_GRAPH=
${
WITH_GPU_GRAPH
:-
OFF
}
-DWITH_FLUID_ONLY=
${
WITH_FLUID_ONLY
:-
OFF
}
-DCUDA_ARCH_BIN=
${
CUDA_ARCH_BIN
}
-DWITH_RECORD_BUILDTIME=
${
WITH_RECORD_BUILDTIME
:-
OFF
}
-DWITH_UNITY_BUILD=
${
WITH_UNITY_BUILD
:-
OFF
}
-DWITH_ONNXRUNTIME=
${
WITH_ONNXRUNTIME
:-
OFF
}
-DWITH_CUDNN_FRONTEND=
${
WITH_CUDNN_FRONTEND
:-
OFF
}
cmake .. -DCMAKE_BUILD_TYPE=
${
CMAKE_BUILD_TYPE
:-
Release
}
-DWITH_GPU=
${
WITH_GPU
:-
OFF
}
-DWITH_
CUDNN_DSO=
${
WITH_CUDNN_DSO
:-
OFF
}
-DWITH_
TENSORRT=
${
WITH_TENSORRT
:-
ON
}
-DWITH_ROCM=
${
WITH_ROCM
:-
OFF
}
-DWITH_CINN=
${
WITH_CINN
:-
OFF
}
-DWITH_DISTRIBUTE=
${
distibuted_flag
}
-DWITH_MKL=
${
WITH_MKL
:-
ON
}
-DWITH_AVX=
${
WITH_AVX
:-
OFF
}
-DCUDA_ARCH_NAME=
${
CUDA_ARCH_NAME
:-
All
}
-DNEW_RELEASE_PYPI=
${
NEW_RELEASE_PYPI
:-
OFF
}
-DNEW_RELEASE_ALL=
${
NEW_RELEASE_ALL
:-
OFF
}
-DNEW_RELEASE_JIT=
${
NEW_RELEASE_JIT
:-
OFF
}
-DWITH_PYTHON=
${
WITH_PYTHON
:-
ON
}
-DCUDNN_ROOT=/usr/ -DWITH_TESTING=
${
WITH_TESTING
:-
ON
}
-DWITH_COVERAGE=
${
WITH_COVERAGE
:-
OFF
}
-DWITH_INCREMENTAL_COVERAGE=
${
WITH_INCREMENTAL_COVERAGE
:-
OFF
}
-DCMAKE_MODULE_PATH=/opt/rocm/hip/cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DWITH_CONTRIB=
${
WITH_CONTRIB
:-
ON
}
-DWITH_INFERENCE_API_TEST=
${
WITH_INFERENCE_API_TEST
:-
ON
}
-DWITH_INFRT=
${
WITH_INFRT
:-
OFF
}
-DINFERENCE_DEMO_INSTALL_DIR=
${
INFERENCE_DEMO_INSTALL_DIR
}
-DPY_VERSION=
${
PY_VERSION
:-
3
.7
}
-DCMAKE_INSTALL_PREFIX=
${
INSTALL_PREFIX
:-
/paddle/build
}
-DWITH_PSCORE=
${
pscore_flag
}
-DWITH_PSLIB=
${
pslib_flag
}
-DWITH_GLOO=
${
gloo_flag
}
-DLITE_GIT_TAG=release/v2.10 -DWITH_XPU=
${
WITH_XPU
:-
OFF
}
-DWITH_MLU=
${
WITH_MLU
:-
OFF
}
-DWITH_IPU=
${
WITH_IPU
:-
OFF
}
-DWITH_CNCL=
${
WITH_CNCL
:-
OFF
}
-DXPU_SDK_ROOT=
${
XPU_SDK_ROOT
:-
""
}
-DWITH_LITE=
${
WITH_LITE
:-
OFF
}
-DWITH_XPU_BKCL=
${
WITH_XPU_BKCL
:-
OFF
}
-DWITH_ARM=
${
WITH_ARM
:-
OFF
}
-DWITH_ASCEND=
${
WITH_ASCEND
:-
OFF
}
-DWITH_ASCEND_CL=
${
WITH_ASCEND_CL
:-
OFF
}
-DWITH_ASCEND_INT64=
${
WITH_ASCEND_INT64
:-
OFF
}
-DWITH_STRIP=
${
WITH_STRIP
:-
ON
}
-DON_INFER=
${
ON_INFER
:-
OFF
}
-DWITH_HETERPS=
${
WITH_HETERPS
:-
OFF
}
-DWITH_GPU_GRAPH=
${
WITH_GPU_GRAPH
:-
OFF
}
-DWITH_FLUID_ONLY=
${
WITH_FLUID_ONLY
:-
OFF
}
-DCUDA_ARCH_BIN=
${
CUDA_ARCH_BIN
}
-DWITH_RECORD_BUILDTIME=
${
WITH_RECORD_BUILDTIME
:-
OFF
}
-DWITH_UNITY_BUILD=
${
WITH_UNITY_BUILD
:-
OFF
}
-DWITH_ONNXRUNTIME=
${
WITH_ONNXRUNTIME
:-
OFF
}
-DWITH_CUDNN_FRONTEND=
${
WITH_CUDNN_FRONTEND
:-
OFF
}
========================================
EOF
export
CMAKE_BUILD_TYPE
=
${
CMAKE_BUILD_TYPE
:-
Release
}
export
WITH_GPU
=
${
WITH_GPU
:-
OFF
}
export
WITH_CUDNN_DSO
=
${
WITH_CUDNN_DSO
:-
OFF
}
export
WITH_TENSORRT
=
${
WITH_TENSORRT
:-
ON
}
export
WITH_ROCM
=
${
WITH_ROCM
:-
OFF
}
export
WITH_CINN
=
${
WITH_CINN
:-
OFF
}
...
...
@@ -3889,17 +3892,18 @@ function run_setup_mac(){
echo
"if you use setup.py to compile,please export envs as following in /paddle ..."
cat
<<
EOF
========================================
export CMAKE_BUILD_TYPE=
${
CMAKE_BUILD_TYPE
:-
Release
}
WITH_GPU=
${
WITH_GPU
:-
OFF
}
WITH_TENSORRT=
${
WITH_TENSORRT
:-
ON
}
WITH_ROCM=
${
WITH_ROCM
:-
OFF
}
WITH_CINN=
${
WITH_CINN
:-
OFF
}
WITH_DISTRIBUTE=
${
distibuted_flag
}
WITH_MKL=
${
WITH_MKL
:-
ON
}
WITH_AVX=
${
WITH_AVX
:-
OFF
}
CUDA_ARCH_NAME=
${
CUDA_ARCH_NAME
:-
All
}
NEW_RELEASE_PYPI=
${
NEW_RELEASE_PYPI
:-
OFF
}
NEW_RELEASE_ALL=
${
NEW_RELEASE_ALL
:-
OFF
}
NEW_RELEASE_JIT=
${
NEW_RELEASE_JIT
:-
OFF
}
WITH_PYTHON=
${
WITH_PYTHON
:-
ON
}
CUDNN_ROOT=/usr/ WITH_TESTING=
${
WITH_TESTING
:-
ON
}
WITH_COVERAGE=
${
WITH_COVERAGE
:-
OFF
}
WITH_INCREMENTAL_COVERAGE=
${
WITH_INCREMENTAL_COVERAGE
:-
OFF
}
CMAKE_MODULE_PATH=/opt/rocm/hip/cmake CMAKE_EXPORT_COMPILE_COMMANDS=ON WITH_CONTRIB=
${
WITH_CONTRIB
:-
ON
}
WITH_INFERENCE_API_TEST=
${
WITH_INFERENCE_API_TEST
:-
ON
}
WITH_INFRT=
${
WITH_INFRT
:-
OFF
}
INFERENCE_DEMO_INSTALL_DIR=
${
INFERENCE_DEMO_INSTALL_DIR
}
PY_VERSION=
${
PY_VERSION
:-
3
.7
}
CMAKE_INSTALL_PREFIX=
${
INSTALL_PREFIX
:-
/paddle/build
}
WITH_PSCORE=
${
pscore_flag
}
WITH_PSLIB=
${
pslib_flag
}
WITH_GLOO=
${
gloo_flag
}
LITE_GIT_TAG=release/v2.10 WITH_XPU=
${
WITH_XPU
:-
OFF
}
WITH_MLU=
${
WITH_MLU
:-
OFF
}
WITH_IPU=
${
WITH_IPU
:-
OFF
}
WITH_CNCL=
${
WITH_CNCL
:-
OFF
}
XPU_SDK_ROOT=
${
XPU_SDK_ROOT
:-
""
}
WITH_LITE=
${
WITH_LITE
:-
OFF
}
WITH_XPU_BKCL=
${
WITH_XPU_BKCL
:-
OFF
}
WITH_ARM=
${
WITH_ARM
:-
OFF
}
WITH_ASCEND=
${
WITH_ASCEND
:-
OFF
}
WITH_ASCEND_CL=
${
WITH_ASCEND_CL
:-
OFF
}
WITH_ASCEND_INT64=
${
WITH_ASCEND_INT64
:-
OFF
}
WITH_STRIP=
${
WITH_STRIP
:-
ON
}
ON_INFER=
${
ON_INFER
:-
OFF
}
WITH_HETERPS=
${
WITH_HETERPS
:-
OFF
}
WITH_GPU_GRAPH=
${
WITH_GPU_GRAPH
:-
OFF
}
WITH_FLUID_ONLY=
${
WITH_FLUID_ONLY
:-
OFF
}
CUDA_ARCH_BIN=
${
CUDA_ARCH_BIN
}
WITH_RECORD_BUILDTIME=
${
WITH_RECORD_BUILDTIME
:-
OFF
}
WITH_UNITY_BUILD=
${
WITH_UNITY_BUILD
:-
OFF
}
WITH_ONNXRUNTIME=
${
WITH_ONNXRUNTIME
:-
OFF
}
WITH_CUDNN_FRONTEND=
${
WITH_CUDNN_FRONTEND
:-
OFF
}
export CMAKE_BUILD_TYPE=
${
CMAKE_BUILD_TYPE
:-
Release
}
WITH_GPU=
${
WITH_GPU
:-
OFF
}
WITH_
CUDNN_DSO=
${
WITH_CUDNN_DSO
:-
OFF
}
WITH_
TENSORRT=
${
WITH_TENSORRT
:-
ON
}
WITH_ROCM=
${
WITH_ROCM
:-
OFF
}
WITH_CINN=
${
WITH_CINN
:-
OFF
}
WITH_DISTRIBUTE=
${
distibuted_flag
}
WITH_MKL=
${
WITH_MKL
:-
ON
}
WITH_AVX=
${
WITH_AVX
:-
OFF
}
CUDA_ARCH_NAME=
${
CUDA_ARCH_NAME
:-
All
}
NEW_RELEASE_PYPI=
${
NEW_RELEASE_PYPI
:-
OFF
}
NEW_RELEASE_ALL=
${
NEW_RELEASE_ALL
:-
OFF
}
NEW_RELEASE_JIT=
${
NEW_RELEASE_JIT
:-
OFF
}
WITH_PYTHON=
${
WITH_PYTHON
:-
ON
}
CUDNN_ROOT=/usr/ WITH_TESTING=
${
WITH_TESTING
:-
ON
}
WITH_COVERAGE=
${
WITH_COVERAGE
:-
OFF
}
WITH_INCREMENTAL_COVERAGE=
${
WITH_INCREMENTAL_COVERAGE
:-
OFF
}
CMAKE_MODULE_PATH=/opt/rocm/hip/cmake CMAKE_EXPORT_COMPILE_COMMANDS=ON WITH_CONTRIB=
${
WITH_CONTRIB
:-
ON
}
WITH_INFERENCE_API_TEST=
${
WITH_INFERENCE_API_TEST
:-
ON
}
WITH_INFRT=
${
WITH_INFRT
:-
OFF
}
INFERENCE_DEMO_INSTALL_DIR=
${
INFERENCE_DEMO_INSTALL_DIR
}
PY_VERSION=
${
PY_VERSION
:-
3
.7
}
CMAKE_INSTALL_PREFIX=
${
INSTALL_PREFIX
:-
/paddle/build
}
WITH_PSCORE=
${
pscore_flag
}
WITH_PSLIB=
${
pslib_flag
}
WITH_GLOO=
${
gloo_flag
}
LITE_GIT_TAG=release/v2.10 WITH_XPU=
${
WITH_XPU
:-
OFF
}
WITH_MLU=
${
WITH_MLU
:-
OFF
}
WITH_IPU=
${
WITH_IPU
:-
OFF
}
WITH_CNCL=
${
WITH_CNCL
:-
OFF
}
XPU_SDK_ROOT=
${
XPU_SDK_ROOT
:-
""
}
WITH_LITE=
${
WITH_LITE
:-
OFF
}
WITH_XPU_BKCL=
${
WITH_XPU_BKCL
:-
OFF
}
WITH_ARM=
${
WITH_ARM
:-
OFF
}
WITH_ASCEND=
${
WITH_ASCEND
:-
OFF
}
WITH_ASCEND_CL=
${
WITH_ASCEND_CL
:-
OFF
}
WITH_ASCEND_INT64=
${
WITH_ASCEND_INT64
:-
OFF
}
WITH_STRIP=
${
WITH_STRIP
:-
ON
}
ON_INFER=
${
ON_INFER
:-
OFF
}
WITH_HETERPS=
${
WITH_HETERPS
:-
OFF
}
WITH_GPU_GRAPH=
${
WITH_GPU_GRAPH
:-
OFF
}
WITH_FLUID_ONLY=
${
WITH_FLUID_ONLY
:-
OFF
}
CUDA_ARCH_BIN=
${
CUDA_ARCH_BIN
}
WITH_RECORD_BUILDTIME=
${
WITH_RECORD_BUILDTIME
:-
OFF
}
WITH_UNITY_BUILD=
${
WITH_UNITY_BUILD
:-
OFF
}
WITH_ONNXRUNTIME=
${
WITH_ONNXRUNTIME
:-
OFF
}
WITH_CUDNN_FRONTEND=
${
WITH_CUDNN_FRONTEND
:-
OFF
}
========================================
EOF
echo
"if you use cmake to compile,please Configuring cmake in /paddle/build ..."
cat
<<
EOF
========================================
cmake .. -DCMAKE_BUILD_TYPE=
${
CMAKE_BUILD_TYPE
:-
Release
}
-DWITH_GPU=
${
WITH_GPU
:-
OFF
}
-DWITH_TENSORRT=
${
WITH_TENSORRT
:-
ON
}
-DWITH_ROCM=
${
WITH_ROCM
:-
OFF
}
-DWITH_CINN=
${
WITH_CINN
:-
OFF
}
-DWITH_DISTRIBUTE=
${
distibuted_flag
}
-DWITH_MKL=
${
WITH_MKL
:-
ON
}
-DWITH_AVX=
${
WITH_AVX
:-
OFF
}
-DCUDA_ARCH_NAME=
${
CUDA_ARCH_NAME
:-
All
}
-DNEW_RELEASE_PYPI=
${
NEW_RELEASE_PYPI
:-
OFF
}
-DNEW_RELEASE_ALL=
${
NEW_RELEASE_ALL
:-
OFF
}
-DNEW_RELEASE_JIT=
${
NEW_RELEASE_JIT
:-
OFF
}
-DWITH_PYTHON=
${
WITH_PYTHON
:-
ON
}
-DCUDNN_ROOT=/usr/ -DWITH_TESTING=
${
WITH_TESTING
:-
ON
}
-DWITH_COVERAGE=
${
WITH_COVERAGE
:-
OFF
}
-DWITH_INCREMENTAL_COVERAGE=
${
WITH_INCREMENTAL_COVERAGE
:-
OFF
}
-DCMAKE_MODULE_PATH=/opt/rocm/hip/cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DWITH_CONTRIB=
${
WITH_CONTRIB
:-
ON
}
-DWITH_INFERENCE_API_TEST=
${
WITH_INFERENCE_API_TEST
:-
ON
}
-DWITH_INFRT=
${
WITH_INFRT
:-
OFF
}
-DINFERENCE_DEMO_INSTALL_DIR=
${
INFERENCE_DEMO_INSTALL_DIR
}
-DPY_VERSION=
${
PY_VERSION
:-
3
.7
}
-DCMAKE_INSTALL_PREFIX=
${
INSTALL_PREFIX
:-
/paddle/build
}
-DWITH_PSCORE=
${
pscore_flag
}
-DWITH_PSLIB=
${
pslib_flag
}
-DWITH_GLOO=
${
gloo_flag
}
-DLITE_GIT_TAG=release/v2.10 -DWITH_XPU=
${
WITH_XPU
:-
OFF
}
-DWITH_MLU=
${
WITH_MLU
:-
OFF
}
-DWITH_IPU=
${
WITH_IPU
:-
OFF
}
-DWITH_CNCL=
${
WITH_CNCL
:-
OFF
}
-DXPU_SDK_ROOT=
${
XPU_SDK_ROOT
:-
""
}
-DWITH_LITE=
${
WITH_LITE
:-
OFF
}
-DWITH_XPU_BKCL=
${
WITH_XPU_BKCL
:-
OFF
}
-DWITH_ARM=
${
WITH_ARM
:-
OFF
}
-DWITH_ASCEND=
${
WITH_ASCEND
:-
OFF
}
-DWITH_ASCEND_CL=
${
WITH_ASCEND_CL
:-
OFF
}
-DWITH_ASCEND_INT64=
${
WITH_ASCEND_INT64
:-
OFF
}
-DWITH_STRIP=
${
WITH_STRIP
:-
ON
}
-DON_INFER=
${
ON_INFER
:-
OFF
}
-DWITH_HETERPS=
${
WITH_HETERPS
:-
OFF
}
-DWITH_GPU_GRAPH=
${
WITH_GPU_GRAPH
:-
OFF
}
-DWITH_FLUID_ONLY=
${
WITH_FLUID_ONLY
:-
OFF
}
-DCUDA_ARCH_BIN=
${
CUDA_ARCH_BIN
}
-DWITH_RECORD_BUILDTIME=
${
WITH_RECORD_BUILDTIME
:-
OFF
}
-DWITH_UNITY_BUILD=
${
WITH_UNITY_BUILD
:-
OFF
}
-DWITH_ONNXRUNTIME=
${
WITH_ONNXRUNTIME
:-
OFF
}
-DWITH_CUDNN_FRONTEND=
${
WITH_CUDNN_FRONTEND
:-
OFF
}
cmake .. -DCMAKE_BUILD_TYPE=
${
CMAKE_BUILD_TYPE
:-
Release
}
-DWITH_GPU=
${
WITH_GPU
:-
OFF
}
-DWITH_
CUDNN_DSO=
${
WITH_CUDNN_DSO
:-
OFF
}
-DWITH_
TENSORRT=
${
WITH_TENSORRT
:-
ON
}
-DWITH_ROCM=
${
WITH_ROCM
:-
OFF
}
-DWITH_CINN=
${
WITH_CINN
:-
OFF
}
-DWITH_DISTRIBUTE=
${
distibuted_flag
}
-DWITH_MKL=
${
WITH_MKL
:-
ON
}
-DWITH_AVX=
${
WITH_AVX
:-
OFF
}
-DCUDA_ARCH_NAME=
${
CUDA_ARCH_NAME
:-
All
}
-DNEW_RELEASE_PYPI=
${
NEW_RELEASE_PYPI
:-
OFF
}
-DNEW_RELEASE_ALL=
${
NEW_RELEASE_ALL
:-
OFF
}
-DNEW_RELEASE_JIT=
${
NEW_RELEASE_JIT
:-
OFF
}
-DWITH_PYTHON=
${
WITH_PYTHON
:-
ON
}
-DCUDNN_ROOT=/usr/ -DWITH_TESTING=
${
WITH_TESTING
:-
ON
}
-DWITH_COVERAGE=
${
WITH_COVERAGE
:-
OFF
}
-DWITH_INCREMENTAL_COVERAGE=
${
WITH_INCREMENTAL_COVERAGE
:-
OFF
}
-DCMAKE_MODULE_PATH=/opt/rocm/hip/cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DWITH_CONTRIB=
${
WITH_CONTRIB
:-
ON
}
-DWITH_INFERENCE_API_TEST=
${
WITH_INFERENCE_API_TEST
:-
ON
}
-DWITH_INFRT=
${
WITH_INFRT
:-
OFF
}
-DINFERENCE_DEMO_INSTALL_DIR=
${
INFERENCE_DEMO_INSTALL_DIR
}
-DPY_VERSION=
${
PY_VERSION
:-
3
.7
}
-DCMAKE_INSTALL_PREFIX=
${
INSTALL_PREFIX
:-
/paddle/build
}
-DWITH_PSCORE=
${
pscore_flag
}
-DWITH_PSLIB=
${
pslib_flag
}
-DWITH_GLOO=
${
gloo_flag
}
-DLITE_GIT_TAG=release/v2.10 -DWITH_XPU=
${
WITH_XPU
:-
OFF
}
-DWITH_MLU=
${
WITH_MLU
:-
OFF
}
-DWITH_IPU=
${
WITH_IPU
:-
OFF
}
-DWITH_CNCL=
${
WITH_CNCL
:-
OFF
}
-DXPU_SDK_ROOT=
${
XPU_SDK_ROOT
:-
""
}
-DWITH_LITE=
${
WITH_LITE
:-
OFF
}
-DWITH_XPU_BKCL=
${
WITH_XPU_BKCL
:-
OFF
}
-DWITH_ARM=
${
WITH_ARM
:-
OFF
}
-DWITH_ASCEND=
${
WITH_ASCEND
:-
OFF
}
-DWITH_ASCEND_CL=
${
WITH_ASCEND_CL
:-
OFF
}
-DWITH_ASCEND_INT64=
${
WITH_ASCEND_INT64
:-
OFF
}
-DWITH_STRIP=
${
WITH_STRIP
:-
ON
}
-DON_INFER=
${
ON_INFER
:-
OFF
}
-DWITH_HETERPS=
${
WITH_HETERPS
:-
OFF
}
-DWITH_GPU_GRAPH=
${
WITH_GPU_GRAPH
:-
OFF
}
-DWITH_FLUID_ONLY=
${
WITH_FLUID_ONLY
:-
OFF
}
-DCUDA_ARCH_BIN=
${
CUDA_ARCH_BIN
}
-DWITH_RECORD_BUILDTIME=
${
WITH_RECORD_BUILDTIME
:-
OFF
}
-DWITH_UNITY_BUILD=
${
WITH_UNITY_BUILD
:-
OFF
}
-DWITH_ONNXRUNTIME=
${
WITH_ONNXRUNTIME
:-
OFF
}
-DWITH_CUDNN_FRONTEND=
${
WITH_CUDNN_FRONTEND
:-
OFF
}
========================================
EOF
export
CMAKE_BUILD_TYPE
=
${
CMAKE_BUILD_TYPE
:-
Release
}
export
WITH_GPU
=
${
WITH_GPU
:-
OFF
}
export
WITH_CUDNN_DSO
=
${
WITH_CUDNN_DSO
:-
OFF
}
export
WITH_TENSORRT
=
${
WITH_TENSORRT
:-
ON
}
export
WITH_ROCM
=
${
WITH_ROCM
:-
OFF
}
export
WITH_CINN
=
${
WITH_CINN
:-
OFF
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录