Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Paddle
提交
cfbf1ba3
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看板
提交
cfbf1ba3
编写于
8月 24, 2018
作者:
D
dzhwinter
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add source
上级
c1ad52f7
变更
6
显示空白变更内容
内联
并排
Showing
6 changed file
with
14 addition
and
31 deletion
+14
-31
paddle/fluid/framework/CMakeLists.txt
paddle/fluid/framework/CMakeLists.txt
+1
-8
paddle/fluid/operators/CMakeLists.txt
paddle/fluid/operators/CMakeLists.txt
+0
-4
paddle/fluid/platform/cpu_info.cc
paddle/fluid/platform/cpu_info.cc
+3
-3
paddle/fluid/platform/enforce.h
paddle/fluid/platform/enforce.h
+9
-5
paddle/fluid/platform/macros.h
paddle/fluid/platform/macros.h
+0
-2
paddle/fluid/pybind/CMakeLists.txt
paddle/fluid/pybind/CMakeLists.txt
+1
-9
未找到文件。
paddle/fluid/framework/CMakeLists.txt
浏览文件 @
cfbf1ba3
add_subdirectory
(
ir
)
if
(
NOT WIN32
)
add_subdirectory
(
details
)
add_subdirectory
(
ir
)
endif
(
NOT WIN32
)
# ddim lib
proto_library
(
framework_proto SRCS framework.proto
)
...
...
@@ -114,19 +114,12 @@ else()
cc_library
(
executor SRCS executor.cc DEPS op_registry device_context scope framework_proto glog lod_rank_table feed_fetch_method
)
endif
()
<<<<<<< HEAD
if
(
NOT WIN32
)
cc_library
(
parallel_executor SRCS parallel_executor.cc DEPS threaded_ssa_graph_executor scope_buffered_ssa_graph_executor graph graph_viz_pass multi_devices_graph_pass multi_devices_graph_print_pass multi_devices_graph_check_pass
)
=======
if
(
NOT WIN32
)
cc_library
(
parallel_executor SRCS parallel_executor.cc DEPS
threaded_ssa_graph_executor scope_buffered_ssa_graph_executor
graph graph_viz_pass multi_devices_graph_pass
multi_devices_graph_print_pass multi_devices_graph_check_pass
fast_threaded_ssa_graph_executor
)
>>>>>>> origin/develop
endif
()
# NOT WIN32
cc_library
(
prune SRCS prune.cc DEPS framework_proto
)
...
...
paddle/fluid/operators/CMakeLists.txt
浏览文件 @
cfbf1ba3
...
...
@@ -85,11 +85,7 @@ function(op_library TARGET)
#remove windows unsupported op
if
(
WIN32
)
<<<<<<< HEAD
foreach
(
windows_unsupport_op
"nccl_op"
"gen_nccl_id_op"
"warpctc_op"
)
=======
foreach
(
windows_unsupport_op
"nccl_op"
"gen_nccl_id_op"
)
>>>>>>> origin/develop
if
(
"
${
TARGET
}
"
STREQUAL
"
${
windows_unsupport_op
}
"
)
return
()
endif
()
...
...
paddle/fluid/platform/cpu_info.cc
浏览文件 @
cfbf1ba3
...
...
@@ -22,13 +22,13 @@ limitations under the License. */
#ifdef __APPLE__
#include <sys/sysctl.h>
#include <sys/types.h>
#elif defined(_WIN32)
#define NOMINMAX
#include <psapi.h>
#define NOMINMAX // msvc max/min macro conflict with std::min/max
#include <windows.h>
#else
#include <unistd.h>
#endif
#endif
// _WIN32
#include <algorithm>
#include "gflags/gflags.h"
...
...
paddle/fluid/platform/enforce.h
浏览文件 @
cfbf1ba3
...
...
@@ -18,6 +18,11 @@ limitations under the License. */
#include <cxxabi.h> // for __cxa_demangle
#endif // __GNUC__
#if defined(_WIN32)
#define NOMINMAX // msvc max/min macro conflict with std::min/max
#define GLOG_NO_ABBREVIATED_SEVERITIES // msvc conflict logging with windows.h
#endif
#ifdef PADDLE_WITH_CUDA
#include <cublas_v2.h>
#include <cudnn.h>
...
...
@@ -35,7 +40,6 @@ limitations under the License. */
#include "glog/logging.h"
#include "paddle/fluid/platform/macros.h"
#include "paddle/fluid/platform/port.h"
#include "paddle/fluid/platform/port.h"
#include "paddle/fluid/string/printf.h"
#include "paddle/fluid/string/to_string.h"
...
...
@@ -263,10 +267,10 @@ inline void throw_on_error(T e) {
} while (false)
#else
#define PADDLE_ENFORCE(...) ::paddle::platform::throw_on_error(__VA_ARGS__);
#endif
#define PADDLE_ENFORCE(...) ::paddle::platform::throw_on_error(__VA_ARGS__)
#endif // REPLACE_ENFORCE_GLOG
#else // !_WIN32
#define GLOG_NO_ABBREVIATED_SEVERITIES
// disable enforce, caused by the varardic macro exception error
#define PADDLE_THROW(x) \
do { \
...
...
@@ -274,7 +278,7 @@ inline void throw_on_error(T e) {
std::runtime_error("Windows disable the enforce.")); \
} while (false)
#define PADDLE_ENFORCE(x) x
#define PADDLE_ENFORCE(x
, ...
) x
#endif // !_WIN32
/*
...
...
paddle/fluid/platform/macros.h
浏览文件 @
cfbf1ba3
...
...
@@ -14,8 +14,6 @@ limitations under the License. */
#pragma once
#define GLOG_NO_ABBREVIATED_SEVERITIES
// Disable the copy and assignment operator for a class.
#ifndef DISABLE_COPY_AND_ASSIGN
#define DISABLE_COPY_AND_ASSIGN(classname) \
...
...
paddle/fluid/pybind/CMakeLists.txt
浏览文件 @
cfbf1ba3
<<<<<<< HEAD
set
(
PYBIND_DEPS pybind python proto_desc memory executor prune feed_fetch_method
)
set
(
PYBIND_SRCS pybind.cc exception.cc protobuf.cc const_value.cc
)
if
(
NOT WIN32
)
...
...
@@ -8,20 +8,12 @@ endif()
if
(
WITH_PYTHON
)
if
(
WITH_AMD_GPU
)
hip_library
(
paddle_pybind SHARED
<<<<<<< HEAD
SRCS
${
PYBIND_SRCS
}
=======
SRCS pybind.cc exception.cc protobuf.cc const_value.cc recordio.cc
>>>>>>> origin/develop
DEPS
${
PYBIND_DEPS
}
${
GLOB_OP_LIB
}
)
else
()
cc_library
(
paddle_pybind SHARED
<<<<<<< HEAD
SRCS
${
PYBIND_SRCS
}
=======
SRCS pybind.cc exception.cc protobuf.cc const_value.cc recordio.cc
>>>>>>> origin/develop
DEPS
${
PYBIND_DEPS
}
${
GLOB_OP_LIB
}
)
if
(
NOT APPLE AND NOT ANDROID AND NOT WIN32
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录