Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Crayon鑫
Paddle
提交
4453d767
P
Paddle
项目概览
Crayon鑫
/
Paddle
与 Fork 源项目一致
Fork自
PaddlePaddle / Paddle
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
Paddle
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
4453d767
编写于
12月 06, 2016
作者:
L
liaogang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Upgrade cuda minimum version to 7.0
上级
aef68475
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
10 addition
and
8 deletion
+10
-8
CMakeLists.txt
CMakeLists.txt
+2
-4
cmake/flags.cmake
cmake/flags.cmake
+3
-0
doc/getstarted/build_and_install/build_from_source.md
doc/getstarted/build_and_install/build_from_source.md
+5
-4
未找到文件。
CMakeLists.txt
浏览文件 @
4453d767
...
@@ -77,12 +77,10 @@ if(NOT WITH_GPU)
...
@@ -77,12 +77,10 @@ if(NOT WITH_GPU)
add_definitions
(
-DHPPL_STUB_FUNC
)
add_definitions
(
-DHPPL_STUB_FUNC
)
list
(
APPEND CMAKE_CXX_SOURCE_FILE_EXTENSIONS cu
)
list
(
APPEND CMAKE_CXX_SOURCE_FILE_EXTENSIONS cu
)
else
()
else
()
if
(
${
CUDA_VERSION_MAJOR
}
GREATER 6
)
if
(
${
CUDA_VERSION_MAJOR
}
VERSION_LESS 7
)
LIST
(
APPEND CUDA_NVCC_FLAGS -std=c++11
)
message
(
FATAL_ERROR
"Paddle need CUDA >= 7.0 to compile"
)
endif
()
endif
()
set
(
CUDA_PROPAGATE_HOST_FLAGS OFF
)
if
(
NOT CUDNN_FOUND
)
if
(
NOT CUDNN_FOUND
)
message
(
FATAL_ERROR
"Paddle need cudnn to compile"
)
message
(
FATAL_ERROR
"Paddle need cudnn to compile"
)
endif
()
endif
()
...
...
cmake/flags.cmake
浏览文件 @
4453d767
...
@@ -138,8 +138,11 @@ foreach(flag ${GPU_COMMON_FLAGS})
...
@@ -138,8 +138,11 @@ foreach(flag ${GPU_COMMON_FLAGS})
endforeach
()
endforeach
()
set
(
CUDA_PROPAGATE_HOST_FLAGS OFF
)
# Release/Debug flags set by cmake. Such as -O3 -g -DNDEBUG etc.
# Release/Debug flags set by cmake. Such as -O3 -g -DNDEBUG etc.
# So, don't set these flags here.
# So, don't set these flags here.
LIST
(
APPEND CUDA_NVCC_FLAGS -std=c++11
)
LIST
(
APPEND CUDA_NVCC_FLAGS --use_fast_math
)
LIST
(
APPEND CUDA_NVCC_FLAGS --use_fast_math
)
if
(
CMAKE_BUILD_TYPE STREQUAL
"Debug"
)
if
(
CMAKE_BUILD_TYPE STREQUAL
"Debug"
)
...
...
doc/getstarted/build_and_install/build_from_source.md
浏览文件 @
4453d767
...
@@ -17,14 +17,15 @@ cd paddle
...
@@ -17,14 +17,15 @@ cd paddle
To compile the source code, your computer must be equipped with the following dependencies.
To compile the source code, your computer must be equipped with the following dependencies.
### Dependencies
-
**Compiler**
: GCC >= 4.8 or Clang >= 3.3 (AppleClang >= 5.1)
-
**Compiler**
: GCC >= 4.8 or Clang >= 3.3 (AppleClang >= 5.1)
-
**CMake**
: version >= 2.8
-
**CMake**
: version >= 2.8
-
**BLAS**
: MKL, OpenBlas or ATLAS
-
**BLAS**
: MKL, OpenBlas or ATLAS
-
**Protocol Buffers**
: version >= 2.4,
**Note: 3.x is not supported**
-
**Protocol Buffers**
: version >= 2.4,
**Note: 3.x is not supported**
-
**Python**
: only python 2.7 is supported currently
-
**Python**
: only python 2.7 is supported currently
**Note:**
For CUDA 7.0 and CUDA 7.5, GCC 5.0 and up are not supported!
For CUDA 8.0, GCC versions later than 5.3 are not supported!
### Options
### Options
PaddlePaddle supports some build options. To enable it, first you need to install the related libraries.
PaddlePaddle supports some build options. To enable it, first you need to install the related libraries.
...
@@ -51,8 +52,8 @@ PaddlePaddle supports some build options. To enable it, first you need to instal
...
@@ -51,8 +52,8 @@ PaddlePaddle supports some build options. To enable it, first you need to instal
</html>
</html>
**Note:**
**Note:**
-
The GPU version works best with Cuda Toolkit
7.5
and cuDNN v5.
-
The GPU version works best with Cuda Toolkit
8.0
and cuDNN v5.
-
Other versions like Cuda Toolkit
6.5, 7.0, 8.0 and cuDNN v2,
v3, v4 are also supported.
-
Other versions like Cuda Toolkit
7.0, 7.5 and cuDNN
v3, v4 are also supported.
-
**To utilize cuDNN v5, Cuda Toolkit 7.5 is prerequisite and vice versa.**
-
**To utilize cuDNN v5, Cuda Toolkit 7.5 is prerequisite and vice versa.**
As a simple example, consider the following:
As a simple example, consider the following:
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录