Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Paddle
提交
903c5638
P
Paddle
项目概览
PaddlePaddle
/
Paddle
大约 1 年 前同步成功
通知
2298
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看板
未验证
提交
903c5638
编写于
5月 05, 2023
作者:
G
gouzil
提交者:
GitHub
5月 05, 2023
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[test]mv fluid op fused to test/cpp/fluid/fused (#53434)
上级
7f9ab2bd
变更
10
隐藏空白更改
内联
并排
Showing
10 changed file
with
72 addition
and
63 deletion
+72
-63
paddle/fluid/operators/fused/CMakeLists.txt
paddle/fluid/operators/fused/CMakeLists.txt
+0
-59
test/cpp/fluid/CMakeLists.txt
test/cpp/fluid/CMakeLists.txt
+1
-1
test/cpp/fluid/fused/CMakeLists.txt
test/cpp/fluid/fused/CMakeLists.txt
+68
-0
test/cpp/fluid/fused/cudnn_bn_add_relu_test.cc
test/cpp/fluid/fused/cudnn_bn_add_relu_test.cc
+0
-0
test/cpp/fluid/fused/cudnn_norm_conv_test.cc
test/cpp/fluid/fused/cudnn_norm_conv_test.cc
+0
-0
test/cpp/fluid/fused/fused_dropout_act_bias_test.cu
test/cpp/fluid/fused/fused_dropout_act_bias_test.cu
+1
-1
test/cpp/fluid/fused/fused_dropout_test.h
test/cpp/fluid/fused/fused_dropout_test.h
+0
-0
test/cpp/fluid/fused/fused_layernorm_residual_dropout_bias_test.cu
...fluid/fused/fused_layernorm_residual_dropout_bias_test.cu
+1
-1
test/cpp/fluid/fused/fused_residual_dropout_bias_test.cu
test/cpp/fluid/fused/fused_residual_dropout_bias_test.cu
+1
-1
test/cpp/fluid/fused/fusion_group_op_test.cc
test/cpp/fluid/fused/fusion_group_op_test.cc
+0
-0
未找到文件。
paddle/fluid/operators/fused/CMakeLists.txt
浏览文件 @
903c5638
...
...
@@ -74,10 +74,6 @@ if(WITH_GPU OR WITH_ROCM)
# fusion_group
if
(
NOT APPLE AND NOT WIN32
)
op_library
(
fusion_group_op DEPS device_code
)
cc_test
(
test_fusion_group_op
SRCS fusion_group_op_test.cc
DEPS fusion_group_op
)
endif
()
# fused_bn_add_activation
# HIP not support bn act fuse in MIOPEN
...
...
@@ -87,37 +83,6 @@ if(WITH_GPU OR WITH_ROCM)
# fused_dropout
# only support CUDA
if
(
NOT WITH_ROCM
)
nv_test
(
test_fused_residual_dropout_bias
SRCS fused_residual_dropout_bias_test.cu
DEPS tensor
op_registry
dropout_op
layer_norm_op
device_context
generator
memory
)
nv_test
(
test_fused_dropout_act_bias
SRCS fused_dropout_act_bias_test.cu
DEPS tensor
op_registry
dropout_op
layer_norm_op
device_context
generator
memory
)
nv_test
(
test_fused_layernorm_residual_dropout_bias
SRCS fused_layernorm_residual_dropout_bias_test.cu
DEPS tensor
op_registry
dropout_op
layer_norm_op
device_context
generator
memory
)
op_library
(
fused_feedforward_op
)
# fused_attention_op
op_library
(
fused_attention_op
)
...
...
@@ -128,30 +93,6 @@ if(WITH_GPU OR WITH_ROCM)
# resnet_unit needs cudnn 8.0 above
if
((
NOT WITH_ROCM
)
AND
(
NOT
${
CUDNN_VERSION
}
VERSION_LESS 8000
))
op_library
(
resnet_unit_op
)
cc_test
(
test_cudnn_norm_conv
SRCS cudnn_norm_conv_test.cc
DEPS conv_op
blas
im2col
vol2col
depthwise_conv
eigen_function
tensor
op_registry
device_context
generator
memory
)
cc_test
(
test_cudnn_bn_add_relu
SRCS cudnn_bn_add_relu_test.cc
DEPS batch_norm_op
fused_bn_add_activation_op
tensor
op_registry
device_context
generator
memory
)
endif
()
if
(
CUDA_VERSION GREATER_EQUAL 11.6
)
...
...
test/cpp/fluid/CMakeLists.txt
浏览文件 @
903c5638
...
...
@@ -6,7 +6,7 @@ endif()
# add_subdirectory(detection)
# add_subdirectory(dlnne)
add_subdirectory
(
elementwise
)
#
add_subdirectory(fused)
add_subdirectory
(
fused
)
if
(
WITH_LITE
)
add_subdirectory
(
lite
)
endif
()
...
...
test/cpp/fluid/fused/CMakeLists.txt
0 → 100644
浏览文件 @
903c5638
if
(
WITH_GPU OR WITH_ROCM
)
# fusion_group
if
(
NOT APPLE AND NOT WIN32
)
cc_test
(
test_fusion_group_op
SRCS fusion_group_op_test.cc
DEPS fusion_group_op
)
endif
()
if
(
NOT WITH_ROCM
)
nv_test
(
test_fused_residual_dropout_bias
SRCS fused_residual_dropout_bias_test.cu
DEPS tensor
op_registry
dropout_op
layer_norm_op
device_context
generator
memory
)
nv_test
(
test_fused_dropout_act_bias
SRCS fused_dropout_act_bias_test.cu
DEPS tensor
op_registry
dropout_op
layer_norm_op
device_context
generator
memory
)
nv_test
(
test_fused_layernorm_residual_dropout_bias
SRCS fused_layernorm_residual_dropout_bias_test.cu
DEPS tensor
op_registry
dropout_op
layer_norm_op
device_context
generator
memory
)
endif
()
# resnet_unit needs cudnn 8.0 above
if
((
NOT WITH_ROCM
)
AND
(
NOT
${
CUDNN_VERSION
}
VERSION_LESS 8000
))
cc_test
(
test_cudnn_norm_conv
SRCS cudnn_norm_conv_test.cc
DEPS conv_op
blas
im2col
vol2col
depthwise_conv
eigen_function
tensor
op_registry
device_context
generator
memory
)
cc_test
(
test_cudnn_bn_add_relu
SRCS cudnn_bn_add_relu_test.cc
DEPS batch_norm_op
fused_bn_add_activation_op
tensor
op_registry
device_context
generator
memory
)
endif
()
endif
()
paddle/fluid/operators
/fused/cudnn_bn_add_relu_test.cc
→
test/cpp/fluid
/fused/cudnn_bn_add_relu_test.cc
浏览文件 @
903c5638
文件已移动
paddle/fluid/operators
/fused/cudnn_norm_conv_test.cc
→
test/cpp/fluid
/fused/cudnn_norm_conv_test.cc
浏览文件 @
903c5638
文件已移动
paddle/fluid/operators
/fused/fused_dropout_act_bias_test.cu
→
test/cpp/fluid
/fused/fused_dropout_act_bias_test.cu
浏览文件 @
903c5638
...
...
@@ -19,9 +19,9 @@ limitations under the License. */
#include "paddle/fluid/operators/amp/fp16_type_traits.h"
#include "paddle/fluid/operators/fused/fused_dropout_act_bias.h"
#include "paddle/fluid/operators/fused/fused_dropout_test.h"
#include "paddle/phi/core/kernel_registry.h"
#include "paddle/phi/kernels/funcs/functors.h"
#include "test/cpp/fluid/fused/fused_dropout_test.h"
#if defined(PADDLE_WITH_CUDA) || defined(PADDLE_WITH_HIP)
PD_DECLARE_KERNEL
(
dropout
,
GPU
,
ALL_LAYOUT
);
...
...
paddle/fluid/operators
/fused/fused_dropout_test.h
→
test/cpp/fluid
/fused/fused_dropout_test.h
浏览文件 @
903c5638
文件已移动
paddle/fluid/operators
/fused/fused_layernorm_residual_dropout_bias_test.cu
→
test/cpp/fluid
/fused/fused_layernorm_residual_dropout_bias_test.cu
浏览文件 @
903c5638
...
...
@@ -17,9 +17,9 @@ limitations under the License. */
#include <random>
#include <vector>
#include "paddle/fluid/operators/fused/fused_dropout_test.h"
#include "paddle/fluid/operators/fused/fused_layernorm_residual_dropout_bias.h"
#include "paddle/phi/core/kernel_registry.h"
#include "test/cpp/fluid/fused/fused_dropout_test.h"
#if defined(PADDLE_WITH_CUDA) || defined(PADDLE_WITH_HIP)
PD_DECLARE_KERNEL
(
dropout
,
GPU
,
ALL_LAYOUT
);
...
...
paddle/fluid/operators
/fused/fused_residual_dropout_bias_test.cu
→
test/cpp/fluid
/fused/fused_residual_dropout_bias_test.cu
浏览文件 @
903c5638
...
...
@@ -17,9 +17,9 @@ limitations under the License. */
#include <random>
#include <vector>
#include "paddle/fluid/operators/fused/fused_dropout_test.h"
#include "paddle/fluid/operators/fused/fused_residual_dropout_bias.h"
#include "paddle/phi/core/kernel_registry.h"
#include "test/cpp/fluid/fused/fused_dropout_test.h"
#if defined(PADDLE_WITH_CUDA) || defined(PADDLE_WITH_HIP)
PD_DECLARE_KERNEL
(
dropout
,
GPU
,
ALL_LAYOUT
);
...
...
paddle/fluid/operators
/fused/fusion_group_op_test.cc
→
test/cpp/fluid
/fused/fusion_group_op_test.cc
浏览文件 @
903c5638
文件已移动
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录