Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Paddle
提交
b6859054
P
Paddle
项目概览
PaddlePaddle
/
Paddle
大约 2 年 前同步成功
通知
2325
Star
20933
Fork
5424
代码
文件
提交
分支
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看板
未验证
提交
b6859054
编写于
5月 25, 2022
作者:
Q
Qi Li
提交者:
GitHub
5月 25, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix compile error on Loongson CPU, test=develop (#42953)
上级
cbb24136
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
5 addition
and
4 deletion
+5
-4
cmake/cblas.cmake
cmake/cblas.cmake
+4
-3
paddle/fluid/framework/io/shell.cc
paddle/fluid/framework/io/shell.cc
+1
-1
未找到文件。
cmake/cblas.cmake
浏览文件 @
b6859054
...
@@ -65,11 +65,13 @@ if(NOT DEFINED CBLAS_PROVIDER)
...
@@ -65,11 +65,13 @@ if(NOT DEFINED CBLAS_PROVIDER)
PATHS
${
OPENBLAS_INCLUDE_SEARCH_PATHS
}
NO_DEFAULT_PATH
)
PATHS
${
OPENBLAS_INCLUDE_SEARCH_PATHS
}
NO_DEFAULT_PATH
)
find_path
(
OPENBLAS_LAPACKE_INC_DIR NAMES lapacke.h
find_path
(
OPENBLAS_LAPACKE_INC_DIR NAMES lapacke.h
PATHS
${
OPENBLAS_INCLUDE_SEARCH_PATHS
}
)
PATHS
${
OPENBLAS_INCLUDE_SEARCH_PATHS
}
)
find_path
(
OPENBLAS_CONFIG_INC_DIR NAMES openblas_config.h
PATHS
${
OPENBLAS_INCLUDE_SEARCH_PATHS
}
)
find_library
(
OPENBLAS_LIB NAMES openblas
find_library
(
OPENBLAS_LIB NAMES openblas
PATHS
${
OPENBLAS_LIB_SEARCH_PATHS
}
)
PATHS
${
OPENBLAS_LIB_SEARCH_PATHS
}
)
if
(
OPENBLAS_LAPACKE_INC_DIR AND OPENBLAS_INC_DIR AND OPENBLAS_LIB
)
if
(
OPENBLAS_LAPACKE_INC_DIR AND OPENBLAS_INC_DIR AND OPENBLAS_
CONFIG_INC_DIR AND OPENBLAS_
LIB
)
file
(
READ
"
${
OPENBLAS_INC_DIR
}
/openblas_config.h"
config_file
)
file
(
READ
"
${
OPENBLAS_
CONFIG_
INC_DIR
}
/openblas_config.h"
config_file
)
string
(
REGEX MATCH
"OpenBLAS ([0-9]+\.[0-9]+\.[0-9]+)"
tmp
${
config_file
}
)
string
(
REGEX MATCH
"OpenBLAS ([0-9]+\.[0-9]+\.[0-9]+)"
tmp
${
config_file
}
)
string
(
REGEX MATCH
"([0-9]+\.[0-9]+\.[0-9]+)"
ver
${
tmp
}
)
string
(
REGEX MATCH
"([0-9]+\.[0-9]+\.[0-9]+)"
ver
${
tmp
}
)
...
@@ -138,4 +140,3 @@ if(${CBLAS_PROVIDER} STREQUAL REFERENCE_CBLAS)
...
@@ -138,4 +140,3 @@ if(${CBLAS_PROVIDER} STREQUAL REFERENCE_CBLAS)
elseif
(
NOT
${
CBLAS_PROVIDER
}
STREQUAL MKLML
)
elseif
(
NOT
${
CBLAS_PROVIDER
}
STREQUAL MKLML
)
target_link_libraries
(
cblas
${
CBLAS_LIBRARIES
}
)
target_link_libraries
(
cblas
${
CBLAS_LIBRARIES
}
)
endif
()
endif
()
paddle/fluid/framework/io/shell.cc
浏览文件 @
b6859054
...
@@ -69,7 +69,7 @@ static int close_open_fds_internal() {
...
@@ -69,7 +69,7 @@ static int close_open_fds_internal() {
for
(;;)
{
for
(;;)
{
int
bytes
=
0
;
int
bytes
=
0
;
if
((
bytes
=
syscall
(
SYS_getdents
,
dir_fd
,
if
((
bytes
=
syscall
(
SYS_getdents
64
,
dir_fd
,
reinterpret_cast
<
linux_dirent
*>
(
buffer
),
reinterpret_cast
<
linux_dirent
*>
(
buffer
),
sizeof
(
buffer
)))
<
0
)
{
sizeof
(
buffer
)))
<
0
)
{
PADDLE_THROW
(
platform
::
errors
::
Unavailable
(
PADDLE_THROW
(
platform
::
errors
::
Unavailable
(
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录