Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Paddle
提交
35c93b4e
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看板
提交
35c93b4e
编写于
6月 06, 2017
作者:
G
gangliao
提交者:
GitHub
6月 06, 2017
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #2393 from Xreki/fix_openblas_arm
Remove DYNAMIC_ARCH when building openblas for non-x86 target archiectures.
上级
ddb241f4
e5d33e77
变更
2
显示空白变更内容
内联
并排
Showing
2 changed file
with
21 addition
and
23 deletion
+21
-23
cmake/cudnn.cmake
cmake/cudnn.cmake
+5
-12
cmake/external/openblas.cmake
cmake/external/openblas.cmake
+16
-11
未找到文件。
cmake/cudnn.cmake
浏览文件 @
35c93b4e
...
@@ -11,23 +11,16 @@ find_path(CUDNN_INCLUDE_DIR cudnn.h
...
@@ -11,23 +11,16 @@ find_path(CUDNN_INCLUDE_DIR cudnn.h
get_filename_component
(
__libpath_hist
${
CUDA_CUDART_LIBRARY
}
PATH
)
get_filename_component
(
__libpath_hist
${
CUDA_CUDART_LIBRARY
}
PATH
)
if
(
NOT
${
CMAKE_HOST_SYSTEM_PROCESSOR
}
)
set
(
TARGET_ARCH
"x86_64"
)
execute_process
(
if
(
NOT
${
CMAKE_SYSTEM_PROCESSOR
}
)
COMMAND uname -m COMMAND tr -d '\n'
set
(
TARGET_ARCH
${
CMAKE_SYSTEM_PROCESSOR
}
)
OUTPUT_VARIABLE HOST_ARCH
endif
()
RESULT_VARIABLE UNAME_RESULT
)
if
(
${
UNAME_RESULT
}
)
set
(
HOST_ARCH
"x86_64"
)
endif
(
${
UNAME_RESULT
}
)
else
(
NOT
${
CMAKE_HOST_SYSTEM_PROCESSOR
}
)
set
(
HOST_ARCH
${
CMAKE_HOST_SYSTEM_PROCESSOR
}
)
endif
(
NOT
${
CMAKE_HOST_SYSTEM_PROCESSOR
}
)
list
(
APPEND CUDNN_CHECK_LIBRARY_DIRS
list
(
APPEND CUDNN_CHECK_LIBRARY_DIRS
${
CUDNN_ROOT
}
${
CUDNN_ROOT
}
${
CUDNN_ROOT
}
/lib64
${
CUDNN_ROOT
}
/lib64
${
CUDNN_ROOT
}
/lib
${
CUDNN_ROOT
}
/lib
${
CUDNN_ROOT
}
/lib/
${
HOS
T_ARCH
}
-linux-gnu
${
CUDNN_ROOT
}
/lib/
${
TARGE
T_ARCH
}
-linux-gnu
$ENV{CUDNN_ROOT}
$ENV{CUDNN_ROOT}
$ENV{CUDNN_ROOT}/lib64
$ENV{CUDNN_ROOT}/lib64
$ENV{CUDNN_ROOT}/lib
$ENV{CUDNN_ROOT}/lib
...
...
cmake/external/openblas.cmake
浏览文件 @
35c93b4e
...
@@ -24,20 +24,25 @@ IF(NOT ${CBLAS_FOUND})
...
@@ -24,20 +24,25 @@ IF(NOT ${CBLAS_FOUND})
SET
(
CBLAS_LIBRARIES
"
${
CBLAS_INSTALL_DIR
}
/lib/
${
LIBRARY_PREFIX
}
openblas
${
STATIC_LIBRARY_SUFFIX
}
"
SET
(
CBLAS_LIBRARIES
"
${
CBLAS_INSTALL_DIR
}
/lib/
${
LIBRARY_PREFIX
}
openblas
${
STATIC_LIBRARY_SUFFIX
}
"
CACHE FILEPATH
"openblas library."
FORCE
)
CACHE FILEPATH
"openblas library."
FORCE
)
SET
(
COMMON_ARGS CC=
${
CMAKE_C_COMPILER
}
NO_SHARED=1 NO_LAPACK=1
)
SET
(
COMMON_ARGS CC=
${
CMAKE_C_COMPILER
}
NO_SHARED=1 NO_LAPACK=1
libs
)
IF
(
CMAKE_CROSSCOMPILING
)
IF
(
ANDROID
)
IF
(
ANDROID
)
# arm_soft_fp_abi branch of OpenBLAS to support softfp
# arm_soft_fp_abi branch of OpenBLAS to support softfp
# https://github.com/xianyi/OpenBLAS/tree/arm_soft_fp_abi
# https://github.com/xianyi/OpenBLAS/tree/arm_soft_fp_abi
SET
(
OPENBLAS_COMMIT
"b5c96fcfcdc82945502a2303116a64d89985daf5"
)
SET
(
OPENBLAS_COMMIT
"b5c96fcfcdc82945502a2303116a64d89985daf5"
)
SET
(
OPTIONAL_ARGS HOSTCC=
${
HOST_C_COMPILER
}
TARGET=ARMV7 ARM_SOFTFP_ABI=1 USE_THREAD=0 libs
)
SET
(
OPTIONAL_ARGS HOSTCC=
${
HOST_C_COMPILER
}
TARGET=ARMV7 ARM_SOFTFP_ABI=1 USE_THREAD=0
)
ELSEIF
(
RPI
)
ELSEIF
(
RPI
)
# use hardfp
# use hardfp
SET
(
OPENBLAS_COMMIT
"v0.2.19"
)
SET
(
OPENBLAS_COMMIT
"v0.2.19"
)
SET
(
OPTIONAL_ARGS HOSTCC=
${
HOST_C_COMPILER
}
TARGET=ARMV7 USE_THREAD=0 libs
)
SET
(
OPTIONAL_ARGS HOSTCC=
${
HOST_C_COMPILER
}
TARGET=ARMV7 USE_THREAD=0
)
ENDIF
()
ELSE
()
ELSE
()
SET
(
OPENBLAS_COMMIT
"v0.2.19"
)
SET
(
OPENBLAS_COMMIT
"v0.2.19"
)
SET
(
OPTIONAL_ARGS DYNAMIC_ARCH=1 libs NUM_THREADS=64
)
SET
(
OPTIONAL_ARGS
""
)
IF
(
CMAKE_SYSTEM_PROCESSOR MATCHES
"^x86(_64)?$"
)
SET
(
OPTIONAL_ARGS DYNAMIC_ARCH=1 NUM_THREADS=64
)
ENDIF
()
ENDIF
()
ENDIF
()
ExternalProject_Add
(
ExternalProject_Add
(
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录