Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Crayon鑫
Paddle
提交
27a0d6c2
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看板
提交
27a0d6c2
编写于
12月 17, 2018
作者:
M
minqiyang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Polish code
test=develop
上级
728e7e88
变更
4
显示空白变更内容
内联
并排
Showing
4 changed file
with
0 addition
and
38 deletion
+0
-38
CMakeLists.txt
CMakeLists.txt
+0
-1
cmake/external/robin_map.cmake
cmake/external/robin_map.cmake
+0
-31
paddle/fluid/framework/scope.h
paddle/fluid/framework/scope.h
+0
-5
python/paddle/fluid/profiler.py
python/paddle/fluid/profiler.py
+0
-1
未找到文件。
CMakeLists.txt
浏览文件 @
27a0d6c2
...
@@ -209,7 +209,6 @@ include(external/xxhash) # download xxhash
...
@@ -209,7 +209,6 @@ include(external/xxhash) # download xxhash
include
(
external/dlpack
)
include
(
external/dlpack
)
include
(
external/snappy
)
# download snappy
include
(
external/snappy
)
# download snappy
include
(
external/snappystream
)
# download snappystream
include
(
external/snappystream
)
# download snappystream
include
(
external/robin_map
)
# download tsl::robin_map
if
(
NOT WIN32
)
if
(
NOT WIN32
)
# there is no official support of warpctc, nccl, cupti in windows
# there is no official support of warpctc, nccl, cupti in windows
...
...
cmake/external/robin_map.cmake
已删除
100644 → 0
浏览文件 @
728e7e88
include
(
ExternalProject
)
set
(
ROBIN_MAP_SOURCE_DIR
${
THIRD_PARTY_PATH
}
/robin_map
)
set
(
ROBIN_MAP_INCLUDE_DIR
${
ROBIN_MAP_SOURCE_DIR
}
/src/extern_robin_map/include
)
include_directories
(
${
ROBIN_MAP_INCLUDE_DIR
}
)
ExternalProject_Add
(
extern_robin_map
${
EXTERNAL_PROJECT_LOG_ARGS
}
GIT_REPOSITORY
"https://github.com/Tessil/robin-map.git"
GIT_TAG
"v0.5.0"
PREFIX
${
ROBIN_MAP_SOURCE_DIR
}
UPDATE_COMMAND
""
CONFIGURE_COMMAND
""
BUILD_COMMAND
""
INSTALL_COMMAND
""
TEST_COMMAND
""
)
if
(
${
CMAKE_VERSION
}
VERSION_LESS
"3.3.0"
)
set
(
dummyfile
${
CMAKE_CURRENT_BINARY_DIR
}
/robin_map_dummy.c
)
file
(
WRITE
${
dummyfile
}
"const char *dummy =
\"
${
dummyfile
}
\"
;"
)
add_library
(
robin_map STATIC
${
dummyfile
}
)
else
()
add_library
(
robin_map INTERFACE
)
endif
()
add_dependencies
(
robin_map extern_robin_map
)
LIST
(
APPEND externl_project_dependencies robin_map
)
paddle/fluid/framework/scope.h
浏览文件 @
27a0d6c2
...
@@ -113,11 +113,6 @@ class Scope {
...
@@ -113,11 +113,6 @@ class Scope {
mutable
std
::
unordered_map
<
std
::
string
,
std
::
unique_ptr
<
Variable
>
,
mutable
std
::
unordered_map
<
std
::
string
,
std
::
unique_ptr
<
Variable
>
,
inner
::
KeyHasher
>
inner
::
KeyHasher
>
vars_
;
vars_
;
// mutable tsl::robin_map<
// std::string, std::unique_ptr<Variable>, std::hash<std::string>,
// std::equal_to<std::string>,
// std::allocator<std::pair<std::string, std::unique_ptr<Variable>>>, true>
// vars_;
private:
private:
// Call Scope::NewScope for a sub-scope.
// Call Scope::NewScope for a sub-scope.
...
...
python/paddle/fluid/profiler.py
浏览文件 @
27a0d6c2
...
@@ -92,7 +92,6 @@ def cuda_profiler(output_file, output_mode=None, config=None):
...
@@ -92,7 +92,6 @@ def cuda_profiler(output_file, output_mode=None, config=None):
config_file
=
'nvprof_config_file'
config_file
=
'nvprof_config_file'
with
open
(
config_file
,
'wb'
)
as
fp
:
with
open
(
config_file
,
'wb'
)
as
fp
:
fp
.
writelines
([
six
.
b
(
"%s
\n
"
%
item
)
for
item
in
config
])
fp
.
writelines
([
six
.
b
(
"%s
\n
"
%
item
)
for
item
in
config
])
#Comment this for nvprof
core
.
nvprof_init
(
output_file
,
output_mode
,
config_file
)
core
.
nvprof_init
(
output_file
,
output_mode
,
config_file
)
# Enables profiler collection by the active CUDA profiling tool.
# Enables profiler collection by the active CUDA profiling tool.
core
.
nvprof_start
()
core
.
nvprof_start
()
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录