From 563a6697ede781981e1e4c1a93206e778a6894b4 Mon Sep 17 00:00:00 2001 From: Feng Xing <79969986+xingfeng01@users.noreply.github.com> Date: Tue, 27 Jul 2021 19:07:57 +0800 Subject: [PATCH] add module api files (#34208) This PR add some primitives api related files. Those files are almost empty for the moment, but will be filled later. --- .../kernel_primitives/compute_primitives.h | 21 ++++++++++++++++ .../kernel_primitives/datamover_primitives.h | 21 ++++++++++++++++ .../kernel_primitives/helper_primitives.h | 21 ++++++++++++++++ .../kernel_primitives/kernel_primitives.h | 25 +++++++++++++++++++ 4 files changed, 88 insertions(+) create mode 100644 paddle/fluid/operators/kernel_primitives/compute_primitives.h create mode 100644 paddle/fluid/operators/kernel_primitives/datamover_primitives.h create mode 100644 paddle/fluid/operators/kernel_primitives/helper_primitives.h create mode 100644 paddle/fluid/operators/kernel_primitives/kernel_primitives.h diff --git a/paddle/fluid/operators/kernel_primitives/compute_primitives.h b/paddle/fluid/operators/kernel_primitives/compute_primitives.h new file mode 100644 index 00000000000..1d23cfe0075 --- /dev/null +++ b/paddle/fluid/operators/kernel_primitives/compute_primitives.h @@ -0,0 +1,21 @@ +// Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +namespace paddle { +namespace operators { +namespace kernel_primitives {} +} +} diff --git a/paddle/fluid/operators/kernel_primitives/datamover_primitives.h b/paddle/fluid/operators/kernel_primitives/datamover_primitives.h new file mode 100644 index 00000000000..1d23cfe0075 --- /dev/null +++ b/paddle/fluid/operators/kernel_primitives/datamover_primitives.h @@ -0,0 +1,21 @@ +// Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +namespace paddle { +namespace operators { +namespace kernel_primitives {} +} +} diff --git a/paddle/fluid/operators/kernel_primitives/helper_primitives.h b/paddle/fluid/operators/kernel_primitives/helper_primitives.h new file mode 100644 index 00000000000..1d23cfe0075 --- /dev/null +++ b/paddle/fluid/operators/kernel_primitives/helper_primitives.h @@ -0,0 +1,21 @@ +// Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +namespace paddle { +namespace operators { +namespace kernel_primitives {} +} +} diff --git a/paddle/fluid/operators/kernel_primitives/kernel_primitives.h b/paddle/fluid/operators/kernel_primitives/kernel_primitives.h new file mode 100644 index 00000000000..45ee4fd7381 --- /dev/null +++ b/paddle/fluid/operators/kernel_primitives/kernel_primitives.h @@ -0,0 +1,25 @@ +// Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include "paddle/fluid/operators/kernel_primitives/compute_primitives.h" +#include "paddle/fluid/operators/kernel_primitives/datamover_primitives.h" +#include "paddle/fluid/operators/kernel_primitives/helper_primitives.h" + +namespace paddle { +namespace operators { +namespace kernel_primitives {} +} +} -- GitLab