Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#include "kernels/impl/cholesky_solve_grad_kernel_impl.h"
#include "paddle/phi/backends/gpu/gpu_context.h"
#include "paddle/phi/core/kernel_registry.h"
#include "paddle/phi/kernels/impl/cholesky_solve_grad_kernel_impl.h"

PD_CUSTOM_KERNEL_REGISTER(cholesky_solve_grad,
metax_gpu,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#include "kernels/impl/dirichlet_kernel_impl.h"
#include "paddle/phi/backends/gpu/gpu_context.h"
#include "paddle/phi/core/kernel_registry.h"
#include "paddle/phi/kernels/impl/dirichlet_kernel_impl.h"

PD_CUSTOM_KERNEL_REGISTER(dirichlet,
metax_gpu,
ALL_LAYOUT,
phi::Dirichletkernel,
phi::DirichletKernel,
float,
double,
phi::dtype::float16,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#include "kernels/impl/gru_unit_kernel_impl.h"
#include "paddle/phi/core/kernel_registry.h"
#include "paddle/phi/kernels/impl/gru_unit_kernel_impl.h"

PD_CUSTOM_KERNEL_REGISTER(gru_unit_grad,
metax_gpu,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#include "kernels/impl/gru_unit_kernel_impl.h"
#include "paddle/phi/core/kernel_registry.h"
#include "paddle/phi/kernels/impl/gru_unit_kernel_impl.h"

PD_CUSTOM_KERNEL_REGISTER(
gru_unit, metax_gpu, ALL_LAYOUT, phi::GRUUnitKernel, float, double) {}
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#include "kernels/impl/inverse_grad_kernel_impl.h"
#include "paddle/phi/backends/gpu/gpu_context.h"
#include "paddle/phi/core/kernel_registry.h"
#include "paddle/phi/kernels/impl/inverse_grad_kernel_impl.h"
#include "paddle/phi/kernels/inverse_grad_kernel.h"

PD_CUSTOM_KERNEL_REGISTER(inverse_grad,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#include "kernels/impl/lstm_kernel_impl.h"
#include "paddle/phi/kernels/impl/lstm_kernel_impl.h"
#include "paddle/phi/kernels/lstm_kernel.h"

PD_CUSTOM_KERNEL_REGISTER(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ 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. */

#include "../impl/addmm_kernel_impl.h"
#include "paddle/phi/backends/gpu/gpu_context.h"
#include "paddle/phi/core/kernel_registry.h"
#include "paddle/phi/kernels/addmm_kernel.h"
#include "paddle/phi/kernels/impl/addmm_kernel_impl.h"

PD_REGISTER_PLUGIN_KERNEL(addmm,
metax_gpu,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#include "kernels/impl/bilinear_grad_kernel_impl.h"
#include "paddle/phi/core/kernel_registry.h"
#include "paddle/phi/kernels/bilinear_grad_kernel.h"
#include "paddle/phi/kernels/impl/bilinear_grad_kernel_impl.h"

PD_REGISTER_PLUGIN_KERNEL(bilinear_grad,
metax_gpu,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#include "kernels/impl/bilinear_kernel_impl.h"
#include "paddle/phi/core/kernel_registry.h"
#include "paddle/phi/kernels/bilinear_kernel.h"
#include "paddle/phi/kernels/impl/bilinear_kernel_impl.h"

PD_REGISTER_PLUGIN_KERNEL(
bilinear, metax_gpu, ALL_LAYOUT, phi::BilinearKernel, float, double) {}
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#include "kernels/impl/bmm_grad_kernel_impl.h"
#include "paddle/phi/backends/gpu/gpu_context.h"
#include "paddle/phi/core/kernel_registry.h"
#include "paddle/phi/kernels/bmm_grad_kernel.h"
#include "paddle/phi/kernels/impl/bmm_grad_kernel_impl.h"

PD_REGISTER_PLUGIN_KERNEL(bmm_grad,
metax_gpu,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#include "kernels/impl/bmm_kernel_impl.h"
#include "paddle/phi/backends/gpu/gpu_context.h"
#include "paddle/phi/core/kernel_registry.h"
#include "paddle/phi/kernels/bmm_kernel.h"
#include "paddle/phi/kernels/impl/bmm_kernel_impl.h"

PD_REGISTER_PLUGIN_KERNEL(bmm,
metax_gpu,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#include "kernels/impl/cholesky_grad_kernel_impl.h"
#include "paddle/phi/backends/gpu/gpu_context.h"
#include "paddle/phi/core/kernel_registry.h"
#include "paddle/phi/kernels/cholesky_grad_kernel.h"
#include "paddle/phi/kernels/impl/cholesky_grad_kernel_impl.h"

PD_REGISTER_PLUGIN_KERNEL(cholesky_grad,
metax_gpu,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#if 0
#include "kernels/impl/conv_kernel_impl.h"
#include "paddle/phi/backends/gpu/gpu_context.h"
#include "paddle/phi/core/kernel_registry.h"
#include "paddle/phi/kernels/conv_kernel.h"
#include "paddle/phi/kernels/impl/conv_kernel_impl.h"

namespace phi {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// limitations under the License.
// clang-format off
#include "paddle/phi/core/tensor_utils.h" //NOLINT
#include "kernels/impl/flatten2_kernel_impl.h"
#include "paddle/phi/kernels/impl/flatten2_kernel_impl.h"
#include "paddle/phi/backends/gpu/gpu_context.h"
#include "paddle/phi/core/kernel_registry.h"
// clang-format on
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// limitations under the License.
// clang-format off
#include "paddle/phi/core/tensor_utils.h" //NOLINT
#include "kernels/impl/flatten2_kernel_impl.h"
#include "paddle/phi/kernels/impl/flatten2_kernel_impl.h"
#include "paddle/phi/backends/gpu/gpu_context.h"
#include "paddle/phi/core/kernel_registry.h"
// clang-format on
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#include "kernels/impl/lstm_kernel_impl.h"
#include "paddle/phi/kernels/impl/lstm_kernel_impl.h"
#include "paddle/phi/kernels/lstm_kernel.h"

PD_REGISTER_PLUGIN_KERNEL(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// limitations under the License.
// clang-format off
#include "paddle/phi/core/tensor_utils.h" //NOLINT
#include "kernels/impl/lu_grad_kernel_impl.h"
#include "paddle/phi/kernels/impl/lu_grad_kernel_impl.h"
#include "paddle/phi/backends/gpu/gpu_context.h"
#include "paddle/phi/core/kernel_registry.h"
#include "paddle/phi/kernels/lu_grad_kernel.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ 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. */

#include "kernels/impl/multi_dot_kernel_impl.h"
#include "paddle/phi/core/kernel_registry.h"
#include "paddle/phi/kernels/impl/multi_dot_kernel_impl.h"
#include "paddle/phi/kernels/multi_dot_grad_kernel.h"
PD_REGISTER_PLUGIN_KERNEL(multi_dot_grad,
metax_gpu,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ 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. */

#include "kernels/impl/multi_dot_kernel_impl.h"
#include "paddle/phi/core/kernel_registry.h"
#include "paddle/phi/kernels/impl/multi_dot_kernel_impl.h"
#include "paddle/phi/kernels/multi_dot_kernel.h"
PD_REGISTER_PLUGIN_KERNEL(multi_dot,
metax_gpu,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#include "kernels/impl/mv_kernel_impl.h"
#include "paddle/phi/backends/gpu/gpu_context.h"
#include "paddle/phi/core/kernel_registry.h"
#include "paddle/phi/kernels/impl/mv_kernel_impl.h"
#include "paddle/phi/kernels/mv_kernel.h"

PD_REGISTER_PLUGIN_KERNEL(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ 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. */

#include "kernels/impl/standard_gamma_kernel_impl.h"
#include "paddle/phi/backends/gpu/gpu_context.h"
#include "paddle/phi/backends/gpu/gpu_launch_config.h"
#include "paddle/phi/core/kernel_registry.h"
#include "paddle/phi/kernels/impl/standard_gamma_kernel_impl.h"

PD_REGISTER_PLUGIN_KERNEL(standard_gamma,
metax_gpu,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#include "kernels/impl/stft_kernel_impl.h"
#include "paddle/phi/backends/gpu/gpu_context.h"
#include "paddle/phi/core/kernel_registry.h"
#include "paddle/phi/kernels/impl/stft_kernel_impl.h"
#include "paddle/phi/kernels/stft_kernel.h"

PD_REGISTER_PLUGIN_KERNEL(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#include "kernels/impl/triangular_solve_grad_kernel_impl.h"
#include "paddle/phi/core/kernel_registry.h"
#include "paddle/phi/kernels/impl/triangular_solve_grad_kernel_impl.h"

#ifdef PADDLE_WITH_CUDA
PD_REGISTER_PLUGIN_KERNEL(triangular_solve_grad,
Expand Down
131 changes: 0 additions & 131 deletions backends/metax_gpu/kernels/impl/addmm_kernel_impl.h

This file was deleted.

Loading
Loading