Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Crayon鑫
Paddle
提交
672dba1b
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看板
未验证
提交
672dba1b
编写于
12月 16, 2021
作者:
S
Sing_chan
提交者:
GitHub
12月 16, 2021
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
block warning: overriding D9025 (#38034)
上级
a43d8e59
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
17 addition
and
8 deletion
+17
-8
cmake/external/gtest.cmake
cmake/external/gtest.cmake
+8
-2
cmake/external/mkldnn.cmake
cmake/external/mkldnn.cmake
+9
-6
未找到文件。
cmake/external/gtest.cmake
浏览文件 @
672dba1b
...
...
@@ -34,11 +34,17 @@ IF(WIN32)
"
${
GTEST_INSTALL_DIR
}
/
${
CMAKE_INSTALL_LIBDIR
}
/gtest.lib"
CACHE FILEPATH
"gtest libraries."
FORCE
)
set
(
GTEST_MAIN_LIBRARIES
"
${
GTEST_INSTALL_DIR
}
/
${
CMAKE_INSTALL_LIBDIR
}
/gtest_main.lib"
CACHE FILEPATH
"gtest main libraries."
FORCE
)
string
(
REPLACE
"/w "
""
GTEST_CMAKE_C_FLAGS
"
${
CMAKE_C_FLAGS
}
"
)
string
(
REPLACE
"/w "
""
GTEST_CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
"
)
string
(
REPLACE
"/W0 "
""
GTEST_CMAKE_C_FLAGS
"
${
GTEST_CMAKE_C_FLAGS
}
"
)
string
(
REPLACE
"/W0 "
""
GTEST_CMAKE_CXX_FLAGS
"
${
GTEST_CMAKE_CXX_FLAGS
}
"
)
ELSE
(
WIN32
)
set
(
GTEST_LIBRARIES
"
${
GTEST_INSTALL_DIR
}
/
${
CMAKE_INSTALL_LIBDIR
}
/libgtest.a"
CACHE FILEPATH
"gtest libraries."
FORCE
)
set
(
GTEST_MAIN_LIBRARIES
"
${
GTEST_INSTALL_DIR
}
/
${
CMAKE_INSTALL_LIBDIR
}
/libgtest_main.a"
CACHE FILEPATH
"gtest main libraries."
FORCE
)
set
(
GTEST_CMAKE_C_FLAGS
"
${
CMAKE_C_FLAGS
}
"
)
set
(
GTEST_CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
"
)
ENDIF
(
WIN32
)
IF
(
WITH_MKLML
)
...
...
@@ -57,10 +63,10 @@ ExternalProject_Add(
UPDATE_COMMAND
""
CMAKE_ARGS -DCMAKE_CXX_COMPILER=
${
CMAKE_CXX_COMPILER
}
-DCMAKE_C_COMPILER=
${
CMAKE_C_COMPILER
}
-DCMAKE_CXX_FLAGS=
${
CMAKE_CXX_FLAGS
}
-DCMAKE_CXX_FLAGS=
${
GTEST_
CMAKE_CXX_FLAGS
}
-DCMAKE_CXX_FLAGS_RELEASE=
${
CMAKE_CXX_FLAGS_RELEASE
}
-DCMAKE_CXX_FLAGS_DEBUG=
${
CMAKE_CXX_FLAGS_DEBUG
}
-DCMAKE_C_FLAGS=
${
CMAKE_C_FLAGS
}
-DCMAKE_C_FLAGS=
${
GTEST_
CMAKE_C_FLAGS
}
-DCMAKE_C_FLAGS_DEBUG=
${
CMAKE_C_FLAGS_DEBUG
}
-DCMAKE_C_FLAGS_RELEASE=
${
CMAKE_C_FLAGS_RELEASE
}
-DCMAKE_INSTALL_PREFIX=
${
GTEST_INSTALL_DIR
}
...
...
cmake/external/mkldnn.cmake
浏览文件 @
672dba1b
...
...
@@ -42,9 +42,14 @@ IF(NOT WIN32)
SET
(
MKLDNN_FLAG
"
${
MKLDNN_FLAG
}
-Wno-unused-result -Wno-unused-value"
)
SET
(
MKLDNN_CFLAG
"
${
CMAKE_C_FLAGS
}
${
MKLDNN_FLAG
}
"
)
SET
(
MKLDNN_CXXFLAG
"
${
CMAKE_CXX_FLAGS
}
${
MKLDNN_FLAG
}
"
)
SET
(
MKLDNN_CXXFLAG_RELEASE
"
${
CMAKE_CXX_FLAGS_RELEASE
}
"
)
SET
(
MKLDNN_CFLAG_RELEASE
"
${
CMAKE_C_FLAGS_RELEASE
}
"
)
SET
(
MKLDNN_LIB
"
${
MKLDNN_INSTALL_DIR
}
/
${
LIBDIR
}
/libdnnl.so"
CACHE FILEPATH
"mkldnn library."
FORCE
)
ELSE
()
SET
(
MKLDNN_CXXFLAG
"
${
CMAKE_CXX_FLAGS
}
/EHsc"
)
SET
(
MKLDNN_CFLAG
"
${
CMAKE_C_FLAGS
}
"
)
string
(
REPLACE
"/O2 "
""
MKLDNN_CFLAG_RELEASE
"
${
CMAKE_C_FLAGS_RELEASE
}
"
)
string
(
REPLACE
"/O2 "
""
MKLDNN_CXXFLAG_RELEASE
"
${
CMAKE_CXX_FLAGS_RELEASE
}
"
)
SET
(
MKLDNN_LIB
"
${
MKLDNN_INSTALL_DIR
}
/bin/mkldnn.lib"
CACHE FILEPATH
"mkldnn library."
FORCE
)
ENDIF
(
NOT WIN32
)
...
...
@@ -60,17 +65,15 @@ ExternalProject_Add(
#BUILD_ALWAYS 1
CMAKE_ARGS -DCMAKE_CXX_COMPILER=
${
CMAKE_CXX_COMPILER
}
-DCMAKE_C_COMPILER=
${
CMAKE_C_COMPILER
}
-DCMAKE_CXX_FLAGS_RELEASE=
${
CMAKE_CXX_FLAGS_RELEASE
}
-DCMAKE_CXX_FLAGS=
${
MKLDNN_CXXFLAG
}
-DCMAKE_CXX_FLAGS_RELEASE=
${
MKLDNN_CXXFLAG_RELEASE
}
-DCMAKE_CXX_FLAGS_DEBUG=
${
CMAKE_CXX_FLAGS_DEBUG
}
-DCMAKE_C_FLAGS=
${
CMAKE_C_FLAGS
}
-DCMAKE_C_FLAGS=
${
MKLDNN_CFLAG
}
-DCMAKE_C_FLAGS_DEBUG=
${
CMAKE_C_FLAGS_DEBUG
}
-DCMAKE_C_FLAGS_RELEASE=
${
CMAKE_C_FLAGS
_RELEASE
}
-DCMAKE_C_FLAGS_RELEASE=
${
MKLDNN_CFLAG
_RELEASE
}
-DCMAKE_INSTALL_PREFIX=
${
MKLDNN_INSTALL_DIR
}
-DCMAKE_BUILD_TYPE=
${
CMAKE_BUILD_TYPE
}
-DCMAKE_POSITION_INDEPENDENT_CODE=ON
-DMKLROOT=
${
MKLML_ROOT
}
-DCMAKE_C_FLAGS=
${
MKLDNN_CFLAG
}
-DCMAKE_CXX_FLAGS=
${
MKLDNN_CXXFLAG
}
-DDNNL_BUILD_TESTS=OFF -DDNNL_BUILD_EXAMPLES=OFF
CMAKE_CACHE_ARGS -DCMAKE_INSTALL_PREFIX:PATH=
${
MKLDNN_INSTALL_DIR
}
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录