File tree 6 files changed +10
-34
lines changed
operator/interface/infer_symbolic_shape
6 files changed +10
-34
lines changed Original file line number Diff line number Diff line change @@ -309,7 +309,6 @@ set(op_dialect_deps
309
309
phi
310
310
common
311
311
pir
312
- ap_pir
313
312
type_info
314
313
string_helper
315
314
global_utils
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ bool ApTrivialFusionBeginOpInferSymbolicShape(
33
33
return true ;
34
34
#else
35
35
PADDLE_THROW (phi::errors::Unimplemented (
36
- " ap_facade is not implemented when cinn is not enabled." ));
36
+ " ap_trivial_fusion_begin is not implemented when cinn is not enabled." ));
37
37
return false ;
38
38
#endif
39
39
}
@@ -47,7 +47,7 @@ bool ApTrivialFusionEndOpInferSymbolicShape(
47
47
return true ;
48
48
#else
49
49
PADDLE_THROW (phi::errors::Unimplemented (
50
- " ap_facade is not implemented when cinn is not enabled." ));
50
+ " ap_trivial_fusion_end is not implemented when cinn is not enabled." ));
51
51
return false ;
52
52
#endif
53
53
}
Original file line number Diff line number Diff line change @@ -242,9 +242,11 @@ endif()
242
242
# Remove AP kernel when CINN is not enabled.
243
243
if (NOT WITH_CINN)
244
244
list (REMOVE_ITEM kernel_cu "gpu/ap_facade_kernel.cu"
245
- "gpu/ap_variadic_kernel.cu" )
245
+ "gpu/ap_trivial_fusion_begin_kernel.cu"
246
+ "gpu/ap_trivial_fusion_end_kernel.cu" "gpu/ap_variadic_kernel.cu" )
246
247
list (REMOVE_ITEM kernel_gpu "gpu/ap_facade_kernel.cu"
247
- "gpu/ap_variadic_kernel.cu" )
248
+ "gpu/ap_trivial_fusion_begin_kernel.cu"
249
+ "gpu/ap_trivial_fusion_end_kernel.cu" "gpu/ap_variadic_kernel.cu" )
248
250
endif ()
249
251
250
252
set (cc_search_pattern
Original file line number Diff line number Diff line change 12
12
// See the License for the specific language governing permissions and
13
13
// limitations under the License.
14
14
15
- #include < mutex>
16
- #include < unordered_map>
17
- #include " glog/logging.h"
18
- #include " jitify.hpp" // NOLINT
19
15
#include " paddle/common/enforce.h"
20
-
21
16
#include " paddle/phi/backends/gpu/gpu_context.h"
22
- #include " paddle/phi/backends/gpu/gpu_device_function.h"
23
17
#include " paddle/phi/core/dense_tensor.h"
24
18
#include " paddle/phi/core/kernel_registry.h"
25
- #include " paddle/phi/kernels/funcs/elementwise_base.h"
26
- #include " paddle/phi/kernels/impl/activation_grad_impl.h"
27
- #include " paddle/phi/kernels/impl/activation_impl.h"
28
19
29
20
namespace phi {
30
21
Original file line number Diff line number Diff line change 12
12
// See the License for the specific language governing permissions and
13
13
// limitations under the License.
14
14
15
- #include < mutex>
16
- #include < unordered_map>
17
- #include " glog/logging.h"
18
- #include " jitify.hpp" // NOLINT
19
15
#include " paddle/common/enforce.h"
20
-
21
16
#include " paddle/phi/backends/gpu/gpu_context.h"
22
- #include " paddle/phi/backends/gpu/gpu_device_function .h"
17
+ #include " paddle/phi/core/dense_tensor .h"
23
18
#include " paddle/phi/core/kernel_registry.h"
24
- #include " paddle/phi/kernels/funcs/elementwise_base.h"
25
- #include " paddle/phi/kernels/impl/activation_grad_impl.h"
26
- #include " paddle/phi/kernels/impl/activation_impl.h"
27
19
28
20
namespace phi {
29
21
@@ -33,7 +25,7 @@ void ApTrivialFusionBeginKernel(
33
25
const paddle::optional<std::vector<const DenseTensor*>>& xs,
34
26
DenseTensor* out) {
35
27
PADDLE_THROW (common::errors::Unimplemented (
36
- " [DEAD CODE] pd_op.ap_trivial_fusion_begin has no kernel registered." ));
28
+ " pd_op.ap_trivial_fusion_begin has no kernel registered." ));
37
29
}
38
30
39
31
} // namespace phi
Original file line number Diff line number Diff line change 12
12
// See the License for the specific language governing permissions and
13
13
// limitations under the License.
14
14
15
- #include < mutex>
16
- #include < unordered_map>
17
- #include " glog/logging.h"
18
- #include " jitify.hpp" // NOLINT
19
15
#include " paddle/common/enforce.h"
20
-
21
16
#include " paddle/phi/backends/gpu/gpu_context.h"
22
- #include " paddle/phi/backends/gpu/gpu_device_function .h"
17
+ #include " paddle/phi/core/dense_tensor .h"
23
18
#include " paddle/phi/core/kernel_registry.h"
24
- #include " paddle/phi/kernels/funcs/elementwise_base.h"
25
- #include " paddle/phi/kernels/impl/activation_grad_impl.h"
26
- #include " paddle/phi/kernels/impl/activation_impl.h"
27
19
28
20
namespace phi {
29
21
@@ -33,7 +25,7 @@ void ApTrivialFusionEndKernel(
33
25
const paddle::optional<std::vector<const DenseTensor*>>& xs,
34
26
DenseTensor* out) {
35
27
PADDLE_THROW (common::errors::Unimplemented (
36
- " [DEAD CODE] pd_op.ap_trivial_fusion_end has no kernel registered." ));
28
+ " pd_op.ap_trivial_fusion_end has no kernel registered." ));
37
29
}
38
30
39
31
} // namespace phi
You can’t perform that action at this time.
0 commit comments