From 7467221be8cecf137fa3d896f4ab08d3132a2178 Mon Sep 17 00:00:00 2001 From: jiahongyu Date: Tue, 27 Sep 2022 03:14:04 +0000 Subject: [PATCH] adjust backend priority, GPUDNN>GPU>ONEDNN>CPU --- paddle/phi/common/backend.h | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/paddle/phi/common/backend.h b/paddle/phi/common/backend.h index b740815305..50fbd8e072 100644 --- a/paddle/phi/common/backend.h +++ b/paddle/phi/common/backend.h @@ -42,18 +42,20 @@ enum class Backend : uint8_t { // basic kernel backend CPU, + // the third library backend + ONEDNN, - // various acceleration devices' backends + // acceleration device's backend GPU, + // the third library backend + GPUDNN, // cuDNN and hipDNN + + // various acceleration devices' backends XPU, // XPU currently does not exist at the same time as CUDA NPU, // NPU currently does not exist at the same time as CUDA MLU, // MLU currently does not exist at the same time as CUDA IPU, - // the third library backend - ONEDNN, - GPUDNN, // cuDNN and hipDNN - // paddle kernel primitives backend KPS, -- GitLab