Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Crayon鑫
Paddle
提交
72be50ca
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看板
提交
72be50ca
编写于
9月 17, 2020
作者:
C
chenzhiyu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add with_musl option
上级
44d9b48e
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
24 addition
and
7 deletion
+24
-7
CMakeLists.txt
CMakeLists.txt
+1
-0
cmake/configure.cmake
cmake/configure.cmake
+13
-0
cmake/external/protobuf.cmake
cmake/external/protobuf.cmake
+4
-2
python/paddle/fluid/core.py
python/paddle/fluid/core.py
+3
-2
python/paddle/vision/transforms/transforms.py
python/paddle/vision/transforms/transforms.py
+1
-1
python/requirements.txt
python/requirements.txt
+2
-2
未找到文件。
CMakeLists.txt
浏览文件 @
72be50ca
...
...
@@ -110,6 +110,7 @@ option(WITH_LITE "Compile Paddle Fluid with Lite Engine" OFF)
option
(
WITH_NCCL
"Compile PaddlePaddle with NCCL support"
ON
)
option
(
WITH_CRYPTO
"Compile PaddlePaddle with crypto support"
ON
)
option
(
WITH_ARM
"Compile PaddlePaddle with arm support"
OFF
)
option
(
WITH_MUSL
"Compile with musl libc instead of gblic"
OFF
)
# PY_VERSION
if
(
NOT PY_VERSION
)
...
...
cmake/configure.cmake
浏览文件 @
72be50ca
...
...
@@ -51,6 +51,19 @@ if(WIN32)
endif
(
NOT MSVC
)
endif
(
WIN32
)
if
(
WITH_MUSL
)
add_definitions
(
-DPADDLE_WITH_MUSL
)
message
(
STATUS,
"WITH_CRYPTO=OFF, when WITH_MUSL=ON"
)
SET
(
WITH_CRYPTO OFF
)
message
(
STATUS,
"WITH_MKL=OFF, when WITH_MUSL=ON"
)
SET
(
WITH_MKL OFF
)
message
(
STATUS,
"WITH_GPU=OFF, when WITH_MUSL=ON"
)
SET
(
WITH_GPU OFF
)
endif
()
if
(
WITH_PSLIB
)
add_definitions
(
-DPADDLE_WITH_PSLIB
)
endif
()
...
...
cmake/external/protobuf.cmake
浏览文件 @
72be50ca
...
...
@@ -199,7 +199,8 @@ FUNCTION(build_protobuf TARGET_NAME BUILD_FOR_HOST)
ENDIF
()
SET
(
PROTOBUF_REPOSITORY https://github.com/protocolbuffers/protobuf.git
)
SET
(
PROTOBUF_TAG 9f75c5aa851cd877fb0d93ccc31b8567a6706546
)
#SET(PROTOBUF_TAG 9f75c5aa851cd877fb0d93ccc31b8567a6706546)
SET
(
PROTOBUF_TAG 2761122b810fe8861004ae785cc3ab39f384d342
)
cache_third_party
(
${
TARGET_NAME
}
REPOSITORY
${
PROTOBUF_REPOSITORY
}
...
...
@@ -234,7 +235,8 @@ FUNCTION(build_protobuf TARGET_NAME BUILD_FOR_HOST)
)
ENDFUNCTION
()
SET
(
PROTOBUF_VERSION 3.1.0
)
#SET(PROTOBUF_VERSION 3.1.0)
SET
(
PROTOBUF_VERSION 3.5.0
)
IF
(
NOT PROTOBUF_FOUND
)
build_protobuf
(
extern_protobuf FALSE
)
...
...
python/paddle/fluid/core.py
浏览文件 @
72be50ca
...
...
@@ -201,7 +201,8 @@ def pre_load(dso_name):
def
get_glibc_ver
():
return
run_shell_command
(
"ldd --version | awk '/ldd/{print $NF}'"
)
return
"musl_"
+
run_shell_command
(
"ldd 2>&1 | awk '/Version/{print $NF}'"
)
#return run_shell_command("ldd --version | awk '/ldd/{print $NF}'")
def
less_than_ver
(
a
,
b
):
...
...
@@ -226,7 +227,7 @@ def less_than_ver(a, b):
# For paddle, the problem is that 'libgomp' is a DSO with static TLS, and it is loaded after 14 DSOs.
# So, here is a tricky way to solve the problem by pre load 'libgomp' before 'core_avx.so'.
# The final solution is to upgrade glibc to > 2.22 on the target system.
if
platform
.
system
().
lower
()
==
'linux'
and
less_than_ver
(
get_glibc_ver
(),
if
platform
.
system
().
lower
()
==
'linux'
and
False
and
less_than_ver
(
get_glibc_ver
(),
'2.23'
):
try
:
pre_load
(
'libgomp'
)
...
...
python/paddle/vision/transforms/transforms.py
浏览文件 @
72be50ca
...
...
@@ -122,7 +122,7 @@ class BatchCompose(object):
Args:
transforms (list): List of transforms to compose.
these transforms perform on batch data.
Examples:
.. code-block:: python
...
...
python/requirements.txt
浏览文件 @
72be50ca
...
...
@@ -4,10 +4,10 @@ numpy>=1.13, <=1.16.4 ; python_version<"3.5"
numpy>=1.13 ; python_version>="3.5"
protobuf>=3.1.0
gast==0.3.3
matplotlib<=2.2.4 ; python_version<"3.6"
#
matplotlib<=2.2.4 ; python_version<"3.6"
scipy>=0.19.0, <=1.2.1 ; python_version<"3.5"
nltk>=3.2.2, <=3.4 ; python_version<"3.5"
matplotlib<=3.2.1 ; python_version>="3.6"
#
matplotlib<=3.2.1 ; python_version>="3.6"
scipy<=1.3.1 ; python_version=="3.5"
scipy ; python_version>"3.5"
nltk ; python_version>="3.5"
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录