Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Crayon鑫
Paddle
提交
9d5b665c
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看板
未验证
提交
9d5b665c
编写于
12月 29, 2021
作者:
王
王明冬
提交者:
GitHub
12月 29, 2021
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[infrt] fix infrt ci test. test=develop, test=infrt (#38533)
上级
21366a92
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
7 addition
and
30 deletion
+7
-30
paddle/infrt/CMakeLists.txt
paddle/infrt/CMakeLists.txt
+4
-1
paddle/infrt/dialect/tensorrt/trt_ops.h
paddle/infrt/dialect/tensorrt/trt_ops.h
+1
-1
paddle/infrt/paddle/CMakeLists.txt
paddle/infrt/paddle/CMakeLists.txt
+0
-6
paddle/infrt/paddle/cpp/CMakeLists.txt
paddle/infrt/paddle/cpp/CMakeLists.txt
+0
-11
paddle/infrt/paddle/pb/CMakeLists.txt
paddle/infrt/paddle/pb/CMakeLists.txt
+0
-8
paddle/scripts/infrt_build.sh
paddle/scripts/infrt_build.sh
+2
-3
未找到文件。
paddle/infrt/CMakeLists.txt
浏览文件 @
9d5b665c
...
...
@@ -3,7 +3,7 @@ if (NOT WITH_INFRT)
endif
()
set
(
INFRT_SOURCE_DIR
"
${
PADDLE_SOURCE_DIR
}
/paddle/infrt"
)
set
(
INFRT_BINARY_DIR
"
${
PADDLE_BINARY_DIR
}
/paddle/infrt"
)
set
(
INFRT_TEST_TARGETS CACHE INTERNAL
""
)
include
(
infrt_lib
)
set
(
infrt_src CACHE INTERNAL
""
FORCE
)
...
...
@@ -46,6 +46,7 @@ function(cc_test_tiny TARGET_NAME)
if
(
${
cc_test_tiny_SERIAL
}
)
set_property
(
TEST
${
TARGET_NAME
}
PROPERTY RUN_SERIAL 1
)
endif
()
set
(
INFRT_TEST_TARGETS
${
INFRT_TEST_TARGETS
}
${
TARGET_NAME
}
CACHE INTERNAL
""
)
endif
()
endfunction
()
...
...
@@ -83,3 +84,5 @@ message(STATUS "infrt srcs:\n${infrt_src}")
cc_library
(
infrt SHARED SRCS
${
infrt_src
}
DEPS glog boost
${
mlir_libs
}
paddle_framework_proto
)
cc_library
(
infrt_static SRCS
${
infrt_src
}
DEPS glog boost
${
mlir_libs
}
paddle_framework_proto
)
add_dependencies
(
infrt
${
infrt_mlir_incs
}
)
add_custom_target
(
test_infrt_exec DEPENDS
${
INFRT_TEST_TARGETS
}
)
paddle/infrt/dialect/tensorrt/trt_ops.h
浏览文件 @
9d5b665c
...
...
@@ -43,7 +43,7 @@ class TensorRTDialect : public ::mlir::Dialect {
using
namespace
mlir
;
// NOLINT
#define GET_OP_CLASSES
#include "dialect/tensorrt/trt_ops.hpp.inc"
#include "
paddle/infrt/
dialect/tensorrt/trt_ops.hpp.inc"
#undef GET_OP_CLASSES
}
// namespace trt
...
...
paddle/infrt/paddle/CMakeLists.txt
浏览文件 @
9d5b665c
...
...
@@ -11,12 +11,6 @@ gather_srcs(infrt_src SRCS
tensor.cc
)
foreach
(
cpp
${
SRCS
}
)
set
(
infrt_src
"
${
infrt_src
}
;infrt/paddle/
${
cpp
}
"
CACHE INTERNAL
""
)
endforeach
()
file
(
GLOB includes LIST_DIRECTORIES false RELATIVE
${
CMAKE_SOURCE_DIR
}
*.h
)
foreach
(
header
${
includes
}
)
...
...
paddle/infrt/paddle/cpp/CMakeLists.txt
浏览文件 @
9d5b665c
core_gather_headers
()
gather_srcs
(
infrt_src SRCS
)
foreach
(
cpp
${
SRCS
}
)
set
(
infrt_src
"
${
infrt_src
}
;infrt/paddle/cpp/
${
cpp
}
"
CACHE INTERNAL
""
)
endforeach
()
file
(
GLOB includes LIST_DIRECTORIES false RELATIVE
${
CMAKE_SOURCE_DIR
}
*.h
)
foreach
(
header
${
includes
}
)
...
...
paddle/infrt/paddle/pb/CMakeLists.txt
浏览文件 @
9d5b665c
core_gather_headers
()
gather_srcs
(
infrt_src SRCS
var_desc.cc
op_desc.cc
...
...
@@ -7,12 +5,6 @@ gather_srcs(infrt_src SRCS
program_desc.cc
)
foreach
(
cpp
${
SRCS
}
)
set
(
infrt_src
"
${
infrt_src
}
;infrt/paddle/pb/
${
cpp
}
"
CACHE INTERNAL
""
)
endforeach
()
file
(
GLOB includes LIST_DIRECTORIES false RELATIVE
${
CMAKE_SOURCE_DIR
}
*.h
)
foreach
(
header
${
includes
}
)
...
...
paddle/scripts/infrt_build.sh
浏览文件 @
9d5b665c
...
...
@@ -65,13 +65,12 @@ function infrt_gen_and_build() {
mkdir
-p
${
PADDLE_ROOT
}
/build
cd
${
PADDLE_ROOT
}
/build
rm
-f
infrt_summary.txt
cmake ..
-DWITH_MKL
=
OFF
-DWITH_GPU
=
OFF
-DCMAKE_BUILD_TYPE
=
Release
-DWITH_INFRT
=
ON
-DWITH_TESTING
==
${
WITH_TESTING
:-
ON
}
;
build_error
=
$?
cmake ..
-DWITH_MKL
=
OFF
-DWITH_GPU
=
OFF
-DCMAKE_BUILD_TYPE
=
Release
-DWITH_INFRT
=
ON
-DWITH_
PYTHON
=
OFF
-DWITH_
TESTING
==
${
WITH_TESTING
:-
ON
}
;
build_error
=
$?
if
[
"
$build_error
"
!=
0
]
;
then
exit
7
;
fi
make
-j
${
parallel_number
}
infrt infrtopt infrt-exec
;
build_error
=
$?
make
-j
${
parallel_number
}
infrt_lib_dist
;
build_error
=
$?
make
-j
${
parallel_number
}
infrt infrtopt infrt-exec test_infrt_exec infrt_lib_dist
;
build_error
=
$?
if
[
"
$build_error
"
!=
0
]
;
then
exit
7
;
fi
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录