Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[XPU] add empty_like op and test, update XHPC to 20240105 #60617

Merged
merged 1 commit into from
Jan 10, 2024
Merged
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
2 changes: 1 addition & 1 deletion cmake/external/xpu.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ if(NOT DEFINED XPU_BASE_DATE)
set(XPU_BASE_DATE "20231218")
endif()
if(NOT DEFINED XPU_XHPC_BASE_DATE)
set(XPU_XHPC_BASE_DATE "20231229")
set(XPU_XHPC_BASE_DATE "20240105")
endif()
set(XPU_XCCL_BASE_VERSION "1.1.8.1")
if(NOT DEFINED XPU_XFT_BASE_VERSION)
Expand Down
11 changes: 11 additions & 0 deletions paddle/phi/backends/xpu/xpu2_op_list.cc
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,17 @@ XPUOpMap& get_kl2_ops() {
phi::DataType::FLOAT32,
phi::DataType::FLOAT64,
phi::DataType::BFLOAT16})},
{"empty_like",
XPUKernelSet({phi::DataType::INT64,
phi::DataType::INT32,
phi::DataType::INT16,
phi::DataType::INT8,
phi::DataType::UINT8,
phi::DataType::BOOL,
phi::DataType::FLOAT16,
phi::DataType::FLOAT32,
phi::DataType::FLOAT64,
phi::DataType::BFLOAT16})},
{"embedding_grad",
XPUKernelSet({phi::DataType::FLOAT32,
phi::DataType::FLOAT16,
Expand Down
11 changes: 11 additions & 0 deletions paddle/phi/backends/xpu/xpu3_op_list.cc
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,17 @@ XPUOpMap& get_kl3_ops() {
phi::DataType::FLOAT32,
phi::DataType::FLOAT64,
phi::DataType::BFLOAT16})},
{"empty_like",
XPUKernelSet({phi::DataType::INT64,
phi::DataType::INT32,
phi::DataType::INT16,
phi::DataType::INT8,
phi::DataType::UINT8,
phi::DataType::BOOL,
phi::DataType::FLOAT16,
phi::DataType::FLOAT32,
phi::DataType::FLOAT64,
phi::DataType::BFLOAT16})},
{"embedding_grad",
XPUKernelSet({phi::DataType::FLOAT32,
phi::DataType::FLOAT16,
Expand Down