Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
BaiXuePrincess
Paddle
提交
3f8585a9
P
Paddle
项目概览
BaiXuePrincess
/
Paddle
与 Fork 源项目一致
Fork自
PaddlePaddle / Paddle
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
Paddle
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
3f8585a9
编写于
9月 28, 2022
作者:
H
HongyuJia
提交者:
GitHub
9月 28, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
rename filenames from pten to phi (#46579)
上级
f6f8c935
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
27 addition
and
27 deletion
+27
-27
paddle/phi/tests/api/CMakeLists.txt
paddle/phi/tests/api/CMakeLists.txt
+4
-4
paddle/phi/tests/api/test_phi_exception.cc
paddle/phi/tests/api/test_phi_exception.cc
+12
-12
paddle/phi/tests/api/test_phi_tensor.cc
paddle/phi/tests/api/test_phi_tensor.cc
+0
-0
paddle/phi/tools/CMakeLists.txt
paddle/phi/tools/CMakeLists.txt
+4
-4
paddle/phi/tools/print_phi_kernels.cc
paddle/phi/tools/print_phi_kernels.cc
+0
-0
paddle/scripts/infrt_build.sh
paddle/scripts/infrt_build.sh
+2
-2
tools/parallel_UT_rule.py
tools/parallel_UT_rule.py
+5
-5
未找到文件。
paddle/phi/tests/api/CMakeLists.txt
浏览文件 @
3f8585a9
if
(
WITH_GPU
)
nv_test
(
test_phi_tensor
SRCS test_p
ten
_tensor.cc
SRCS test_p
hi
_tensor.cc
DEPS phi_tensor glog
)
elseif
(
WITH_ROCM
)
hip_test
(
test_phi_tensor
SRCS test_p
ten
_tensor.cc
SRCS test_p
hi
_tensor.cc
DEPS phi_tensor glog
)
else
()
cc_test
(
test_phi_tensor
SRCS test_p
ten
_tensor.cc
SRCS test_p
hi
_tensor.cc
DEPS phi_tensor glog
)
endif
()
cc_test
(
test_phi_exception
SRCS test_p
ten
_exception.cc
SRCS test_p
hi
_exception.cc
DEPS gtest
)
set
(
COMMON_API_TEST_DEPS phi_tensor phi_api phi_api_utils
)
...
...
paddle/phi/tests/api/test_p
ten
_exception.cc
→
paddle/phi/tests/api/test_p
hi
_exception.cc
浏览文件 @
3f8585a9
...
...
@@ -27,10 +27,10 @@ TEST(PD_THROW, empty) {
std
::
string
err_msg
=
e
.
what
();
EXPECT_TRUE
(
err_msg
.
find
(
"An error occurred."
)
!=
std
::
string
::
npos
);
#if _WIN32
EXPECT_TRUE
(
err_msg
.
find
(
"tests
\\
api
\\
test_p
ten
_exception.cc"
)
!=
EXPECT_TRUE
(
err_msg
.
find
(
"tests
\\
api
\\
test_p
hi
_exception.cc"
)
!=
std
::
string
::
npos
);
#else
EXPECT_TRUE
(
err_msg
.
find
(
"paddle/phi/tests/api/test_p
ten
_exception.cc"
)
!=
EXPECT_TRUE
(
err_msg
.
find
(
"paddle/phi/tests/api/test_p
hi
_exception.cc"
)
!=
std
::
string
::
npos
);
#endif
}
...
...
@@ -54,10 +54,10 @@ TEST(PD_THROW, non_empty) {
EXPECT_TRUE
(
err_msg
.
find
(
"PD_THROW returns 0. DataType of 1 is INT. "
)
!=
std
::
string
::
npos
);
#if _WIN32
EXPECT_TRUE
(
err_msg
.
find
(
"tests
\\
api
\\
test_p
ten
_exception.cc"
)
!=
EXPECT_TRUE
(
err_msg
.
find
(
"tests
\\
api
\\
test_p
hi
_exception.cc"
)
!=
std
::
string
::
npos
);
#else
EXPECT_TRUE
(
err_msg
.
find
(
"paddle/phi/tests/api/test_p
ten
_exception.cc"
)
!=
EXPECT_TRUE
(
err_msg
.
find
(
"paddle/phi/tests/api/test_p
hi
_exception.cc"
)
!=
std
::
string
::
npos
);
#endif
}
...
...
@@ -84,10 +84,10 @@ TEST(PD_CHECK, FAILED) {
EXPECT_TRUE
(
err_msg
.
find
(
"Expected false, but it's not satisfied."
)
!=
std
::
string
::
npos
);
#if _WIN32
EXPECT_TRUE
(
err_msg
.
find
(
"tests
\\
api
\\
test_p
ten
_exception.cc"
)
!=
EXPECT_TRUE
(
err_msg
.
find
(
"tests
\\
api
\\
test_p
hi
_exception.cc"
)
!=
std
::
string
::
npos
);
#else
EXPECT_TRUE
(
err_msg
.
find
(
"paddle/phi/tests/api/test_p
ten
_exception.cc"
)
!=
EXPECT_TRUE
(
err_msg
.
find
(
"paddle/phi/tests/api/test_p
hi
_exception.cc"
)
!=
std
::
string
::
npos
);
#endif
}
...
...
@@ -110,10 +110,10 @@ TEST(PD_CHECK, FAILED) {
EXPECT_TRUE
(
err_msg
.
find
(
"PD_CHECK returns 0. DataType of 1 is INT. "
)
!=
std
::
string
::
npos
);
#if _WIN32
EXPECT_TRUE
(
err_msg
.
find
(
"tests
\\
api
\\
test_p
ten
_exception.cc"
)
!=
EXPECT_TRUE
(
err_msg
.
find
(
"tests
\\
api
\\
test_p
hi
_exception.cc"
)
!=
std
::
string
::
npos
);
#else
EXPECT_TRUE
(
err_msg
.
find
(
"paddle/phi/tests/api/test_p
ten
_exception.cc"
)
!=
EXPECT_TRUE
(
err_msg
.
find
(
"paddle/phi/tests/api/test_p
hi
_exception.cc"
)
!=
std
::
string
::
npos
);
#endif
}
...
...
@@ -130,10 +130,10 @@ TEST(PD_CHECK, FAILED) {
EXPECT_TRUE
(
err_msg
.
find
(
"Expected a > b, but it's not satisfied."
)
!=
std
::
string
::
npos
);
#if _WIN32
EXPECT_TRUE
(
err_msg
.
find
(
"tests
\\
api
\\
test_p
ten
_exception.cc"
)
!=
EXPECT_TRUE
(
err_msg
.
find
(
"tests
\\
api
\\
test_p
hi
_exception.cc"
)
!=
std
::
string
::
npos
);
#else
EXPECT_TRUE
(
err_msg
.
find
(
"paddle/phi/tests/api/test_p
ten
_exception.cc"
)
!=
EXPECT_TRUE
(
err_msg
.
find
(
"paddle/phi/tests/api/test_p
hi
_exception.cc"
)
!=
std
::
string
::
npos
);
#endif
}
...
...
@@ -150,10 +150,10 @@ TEST(PD_CHECK, FAILED) {
EXPECT_TRUE
(
err_msg
.
find
(
"PD_CHECK returns 0, because 123 > 0.345"
)
!=
std
::
string
::
npos
);
#if _WIN32
EXPECT_TRUE
(
err_msg
.
find
(
"tests
\\
api
\\
test_p
ten
_exception.cc"
)
!=
EXPECT_TRUE
(
err_msg
.
find
(
"tests
\\
api
\\
test_p
hi
_exception.cc"
)
!=
std
::
string
::
npos
);
#else
EXPECT_TRUE
(
err_msg
.
find
(
"paddle/phi/tests/api/test_p
ten
_exception.cc"
)
!=
EXPECT_TRUE
(
err_msg
.
find
(
"paddle/phi/tests/api/test_p
hi
_exception.cc"
)
!=
std
::
string
::
npos
);
#endif
}
...
...
paddle/phi/tests/api/test_p
ten
_tensor.cc
→
paddle/phi/tests/api/test_p
hi
_tensor.cc
浏览文件 @
3f8585a9
文件已移动
paddle/phi/tools/CMakeLists.txt
浏览文件 @
3f8585a9
add_executable
(
print_p
ten_kernels print_pten
_kernels.cc
)
target_link_libraries
(
print_p
ten
_kernels phi phi_api_utils
)
add_executable
(
print_p
hi_kernels print_phi
_kernels.cc
)
target_link_libraries
(
print_p
hi
_kernels phi phi_api_utils
)
if
(
WIN32
)
target_link_libraries
(
print_p
ten
_kernels shlwapi.lib
)
target_link_libraries
(
print_p
hi
_kernels shlwapi.lib
)
endif
()
if
(
WITH_ROCM
)
target_link_libraries
(
print_p
ten
_kernels
${
ROCM_HIPRTC_LIB
}
)
target_link_libraries
(
print_p
hi
_kernels
${
ROCM_HIPRTC_LIB
}
)
endif
()
paddle/phi/tools/print_p
ten
_kernels.cc
→
paddle/phi/tools/print_p
hi
_kernels.cc
浏览文件 @
3f8585a9
文件已移动
paddle/scripts/infrt_build.sh
浏览文件 @
3f8585a9
...
...
@@ -33,9 +33,9 @@ function update_pd_ops() {
rm
-rf
${
PADDLE_ROOT
}
/build
&&
mkdir
-p
${
PADDLE_ROOT
}
/build
cd
${
PADDLE_ROOT
}
/build
cmake ..
-DWITH_PYTHON
=
ON
-DWITH_MKL
=
OFF
-DWITH_GPU
=
OFF
-DPYTHON_EXECUTABLE
=
`
which python3
`
-DWITH_XBYAK
=
OFF
-DWITH_NCCL
=
OFF
-DWITH_RCCL
=
OFF
-DWITH_CRYPTO
=
OFF
make
-j8
paddle_python print_p
ten
_kernels kernel_signature_generator
make
-j8
paddle_python print_p
hi
_kernels kernel_signature_generator
cd
${
PADDLE_ROOT
}
/build
./paddle/phi/tools/print_p
ten
_kernels
>
../tools/infrt/kernels.json
./paddle/phi/tools/print_p
hi
_kernels
>
../tools/infrt/kernels.json
./paddle/fluid/pybind/kernel_signature_generator
>
../tools/infrt/kernel_signature.json
cd
python/dist/
python3
-m
pip uninstall
-y
paddlepaddle
...
...
tools/parallel_UT_rule.py
浏览文件 @
3f8585a9
...
...
@@ -1711,9 +1711,9 @@ CPU_PARALLEL_JOB = [
'test_fleet_utils'
,
'brpc_service_dense_sgd_test'
,
'test_custom_linear'
,
'p
ten
_test_backend'
,
'p
hi
_test_backend'
,
'test_allocator'
,
'p
ten
_test_data_type'
,
'p
hi
_test_data_type'
,
'test_slice_api'
,
'test_scale_api'
,
'test_sum_api'
,
...
...
@@ -1723,7 +1723,7 @@ CPU_PARALLEL_JOB = [
'build_strategy_test'
,
'test_fc_rnn_mkldnn_fuse_pass'
,
'scope_guard_test'
,
'p
ten
_utils_test'
,
'p
hi
_utils_test'
,
'init_test'
,
'cpu_helper_test'
,
'complex_gpu_test'
,
...
...
@@ -1740,7 +1740,7 @@ CPU_PARALLEL_JOB = [
'test_framework_place_utils'
,
'test_reshape_api'
,
'test_cast_api'
,
'test_p
ten
_exception'
,
'test_p
hi
_exception'
,
'test_mean_api'
,
'test_framework_storage'
,
'test_fill_api'
,
...
...
@@ -2111,7 +2111,7 @@ TETRAD_PARALLEL_JOB = [
'test_fused_layernorm_residual_dropout_bias'
,
'test_fused_dropout_act_bias'
,
'test_tensorrt'
,
'test_p
ten
_tensor'
,
'test_p
hi
_tensor'
,
'test_matmul_api'
,
'test_to_api'
,
'beam_search_test'
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录