Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Paddle-Lite
提交
2621af0e
P
Paddle-Lite
项目概览
PaddlePaddle
/
Paddle-Lite
通知
331
Star
4
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
271
列表
看板
标记
里程碑
合并请求
78
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
Paddle-Lite
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
271
Issue
271
列表
看板
标记
里程碑
合并请求
78
合并请求
78
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
2621af0e
编写于
11月 20, 2019
作者:
石
石晓伟
提交者:
GitHub
11月 20, 2019
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add cuda ci building, test=develop (#2460)
* add cuda ci building, test=develop * update comments, test=develop
上级
94255f6c
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
26 addition
and
4 deletion
+26
-4
cmake/cudnn.cmake
cmake/cudnn.cmake
+2
-1
lite/kernels/cuda/concat_compute.cu
lite/kernels/cuda/concat_compute.cu
+2
-2
lite/tools/ci_build.sh
lite/tools/ci_build.sh
+22
-1
未找到文件。
cmake/cudnn.cmake
浏览文件 @
2621af0e
...
...
@@ -26,7 +26,8 @@ list(APPEND CUDNN_CHECK_LIBRARY_DIRS
${
CUDNN_ROOT
}
/lib64
${
CUDNN_ROOT
}
/lib
${
CUDNN_ROOT
}
/lib/
${
TARGET_ARCH
}
-linux-gnu
${
CUDNN_ROOT
}
/local/cuda-
${
CUDA_VERSION
}
/targets/
${
TARGET_ARCH
}
-linux/lib/
/usr/local/cuda-
${
CUDA_VERSION
}
/targets/
${
TARGET_ARCH
}
-linux/lib/
/usr/lib/
${
TARGET_ARCH
}
-linux-gnu/
$ENV{CUDNN_ROOT}
$ENV{CUDNN_ROOT}/lib64
$ENV{CUDNN_ROOT}/lib
...
...
lite/kernels/cuda/concat_compute.cu
浏览文件 @
2621af0e
...
...
@@ -51,9 +51,9 @@ void ConcatCompute<Dtype>::Run() {
Tensor
*
output
=
param
.
output
;
auto
*
output_data
=
output
->
mutable_data
<
Dtype
>
(
TARGET
(
kCUDA
));
int
axis
=
param
.
axis
;
auto
*
axis_tensor
=
param
.
axis_tensor
;
Tensor
*
axis_tensor
=
param
.
axis_tensor
;
if
(
axis_tensor
!=
nullptr
)
{
auto
*
axis_tensor_data
=
axis_tensor
->
data
<
int
>
();
const
int
*
axis_tensor_data
=
axis_tensor
->
data
<
int
>
();
axis
=
axis_tensor_data
[
0
];
}
int
inner_size
=
1
;
...
...
lite/tools/ci_build.sh
浏览文件 @
2621af0e
#!/bin/bash
# The git version of CI is 2.7.4. This script is not compatible with git version 1.7.1.
set
-ex
TESTS_FILE
=
"./lite_tests.txt"
LIBS_FILE
=
"./lite_libs.txt"
CUDNN_ROOT
=
"/usr/local/cudnn"
readonly
ADB_WORK_DIR
=
"/data/local/tmp"
readonly
common_flags
=
"-DWITH_LITE=ON -DLITE_WITH_LIGHT_WEIGHT_FRAMEWORK=OFF -DWITH_PYTHON=OFF -DWITH_TESTING=ON -DLITE_WITH_ARM=OFF"
...
...
@@ -162,6 +163,12 @@ function cmake_x86_for_CI {
# make test_generated_code -j$NUM_CORES_FOR_COMPILE
}
function
cmake_cuda_for_CI
{
prepare_workspace
# fake an empty __generated_code__.cc to pass cmake.
cmake ..
-DLITE_WITH_CUDA
=
ON
-DWITH_MKLDNN
=
OFF
-DLITE_WITH_X86
=
OFF
${
common_flags
}
-DLITE_WITH_PROFILE
=
ON
-DWITH_MKL
=
OFF
\
-DLITE_BUILD_EXTRA
=
ON
-DCUDNN_ROOT
=
${
CUDNN_ROOT
}
}
function
cmake_gpu
{
prepare_workspace
cmake ..
" -DWITH_GPU=ON {common_flags} -DLITE_WITH_GPU=ON"
...
...
@@ -226,6 +233,16 @@ function build_test_server {
test_model_optimize_tool_compile
}
# The CUDA version of CI is cuda_10.1.243_418.87.00_linux.
# The cuDNN version is cudnn-10.1-linux-x64-v7.5.0.56.
function
build_test_cuda_server
{
mkdir
-p
./build
cd
./build
export
LD_LIBRARY_PATH
=
"
$LD_LIBRARY_PATH
:
$PWD
/third_party/install/mklml/lib"
cmake_cuda_for_CI
build
}
function
build_test_train
{
mkdir
-p
./build
cd
./build
...
...
@@ -950,6 +967,10 @@ function main {
test_arm_android
$TEST_NAME
$ARM_PORT
shift
;;
build_test_cuda_server
)
build_test_cuda_server
shift
;;
build_test_server
)
build_test_server
shift
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录