Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Crayon鑫
Paddle
提交
07f30241
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看板
提交
07f30241
编写于
10月 12, 2016
作者:
H
hedaoyuan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fixed some nvcc compilation related
上级
e63f1e69
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
9 addition
and
11 deletion
+9
-11
CMakeLists.txt
CMakeLists.txt
+5
-0
cmake/util.cmake
cmake/util.cmake
+0
-7
paddle/gserver/CMakeLists.txt
paddle/gserver/CMakeLists.txt
+1
-1
paddle/math/CMakeLists.txt
paddle/math/CMakeLists.txt
+1
-1
paddle/math/tests/CMakeLists.txt
paddle/math/tests/CMakeLists.txt
+1
-1
paddle/math/tests/test_TrainingAlgorithm.cpp
paddle/math/tests/test_TrainingAlgorithm.cpp
+1
-1
未找到文件。
CMakeLists.txt
浏览文件 @
07f30241
...
@@ -98,6 +98,8 @@ else()
...
@@ -98,6 +98,8 @@ else()
add_definitions
(
-DPADDLE_USE_DSO
)
add_definitions
(
-DPADDLE_USE_DSO
)
endif
(
WITH_DSO
)
endif
(
WITH_DSO
)
set
(
CUDA_NVCC_FLAGS
${
CUDA_NVCC_FLAGS
}
"-g -O3 --use_fast_math"
)
# Include cuda and cudnn
# Include cuda and cudnn
include_directories
(
${
CUDNN_INCLUDE_DIR
}
)
include_directories
(
${
CUDNN_INCLUDE_DIR
}
)
include_directories
(
${
CUDA_TOOLKIT_INCLUDE
}
)
include_directories
(
${
CUDA_TOOLKIT_INCLUDE
}
)
...
@@ -117,6 +119,9 @@ endif(NOT WITH_TIMER)
...
@@ -117,6 +119,9 @@ endif(NOT WITH_TIMER)
if
(
WITH_AVX
)
if
(
WITH_AVX
)
set
(
CMAKE_C_FLAGS
"
${
CMAKE_C_FLAGS
}
${
AVX_FLAGS
}
"
)
set
(
CMAKE_C_FLAGS
"
${
CMAKE_C_FLAGS
}
${
AVX_FLAGS
}
"
)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
${
AVX_FLAGS
}
"
)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
${
AVX_FLAGS
}
"
)
if
(
AVX_FOUND
)
set
(
CUDA_NVCC_FLAGS
${
CUDA_NVCC_FLAGS
}
"-Xcompiler -mavx"
)
endif
(
AVX_FOUND
)
else
(
WITH_AVX
)
else
(
WITH_AVX
)
set
(
CMAKE_C_FLAGS
"
${
CMAKE_C_FLAGS
}
-msse3"
)
set
(
CMAKE_C_FLAGS
"
${
CMAKE_C_FLAGS
}
-msse3"
)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-msse3"
)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-msse3"
)
...
...
cmake/util.cmake
浏览文件 @
07f30241
...
@@ -178,13 +178,6 @@ macro(add_simple_unittest TARGET_NAME)
...
@@ -178,13 +178,6 @@ macro(add_simple_unittest TARGET_NAME)
add_unittest
(
${
TARGET_NAME
}
${
TARGET_NAME
}
.cpp
)
add_unittest
(
${
TARGET_NAME
}
${
TARGET_NAME
}
.cpp
)
endmacro
()
endmacro
()
macro
(
add_paddle_culib TARGET_NAME
)
set
(
NVCC_FLAG
${
CUDA_NVCC_FLAGS
}
)
set
(
CUDA_NVCC_FLAGS
${
CUDA_NVCC_FLAGS
}
;--use_fast_math
)
cuda_add_library
(
${
TARGET_NAME
}
STATIC
${
ARGN
}
)
set
(
CUDA_NVCC_FLAGS
${
NVCC_FLAG
}
)
endmacro
()
# Creates C resources file from files in given resource file
# Creates C resources file from files in given resource file
function
(
create_resources res_file output
)
function
(
create_resources res_file output
)
...
...
paddle/gserver/CMakeLists.txt
浏览文件 @
07f30241
...
@@ -50,7 +50,7 @@ if(NOT WITH_PYTHON)
...
@@ -50,7 +50,7 @@ if(NOT WITH_PYTHON)
endif
()
endif
()
if
(
WITH_GPU
)
if
(
WITH_GPU
)
add_paddle_culib
(
paddle_gserver
${
GSERVER_SOURCES
}
)
cuda_add_library
(
paddle_gserver
${
GSERVER_SOURCES
}
)
else
()
else
()
add_library
(
paddle_gserver STATIC
add_library
(
paddle_gserver STATIC
${
GSERVER_SOURCES
}
)
${
GSERVER_SOURCES
}
)
...
...
paddle/math/CMakeLists.txt
浏览文件 @
07f30241
...
@@ -25,7 +25,7 @@ if(NOT WITH_GPU)
...
@@ -25,7 +25,7 @@ if(NOT WITH_GPU)
add_library
(
paddle_math STATIC
add_library
(
paddle_math STATIC
${
MATH_SOURCES
}
)
${
MATH_SOURCES
}
)
else
()
else
()
add_paddle_culib
(
paddle_math
${
MATH_SOURCES
}
)
cuda_add_library
(
paddle_math
${
MATH_SOURCES
}
)
endif
()
endif
()
...
...
paddle/math/tests/CMakeLists.txt
浏览文件 @
07f30241
...
@@ -15,7 +15,7 @@ add_simple_unittest(test_perturbation)
...
@@ -15,7 +15,7 @@ add_simple_unittest(test_perturbation)
add_simple_unittest
(
test_CpuGpuVector
)
add_simple_unittest
(
test_CpuGpuVector
)
add_simple_unittest
(
test_Allocator
)
add_simple_unittest
(
test_Allocator
)
if
(
COMPILER_SUPPORT_CXX11
)
if
(
COMPILER_SUPPORT_CXX11
)
LIST
(
APPEND CUDA_NVCC_FLAGS -std=c++11
-Xcompiler -fPIC --use_fast_math
)
LIST
(
APPEND CUDA_NVCC_FLAGS -std=c++11
)
CUDA_ADD_EXECUTABLE
(
test_Tensor test_Tensor.cu
)
CUDA_ADD_EXECUTABLE
(
test_Tensor test_Tensor.cu
)
link_paddle_test
(
test_Tensor
)
link_paddle_test
(
test_Tensor
)
endif
()
endif
()
paddle/math/tests/test_TrainingAlgorithm.cpp
浏览文件 @
07f30241
...
@@ -81,7 +81,7 @@ int VectorCheckErr(const VectorPtr& vector1, const VectorPtr& vector2) {
...
@@ -81,7 +81,7 @@ int VectorCheckErr(const VectorPtr& vector1, const VectorPtr& vector2) {
#else
#else
#include "paddle/
common
/Stat.h"
#include "paddle/
utils
/Stat.h"
#define CHECK_VECTORPTR(vector1, vector2)
#define CHECK_VECTORPTR(vector1, vector2)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录