Skip to content
Open
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
5 changes: 4 additions & 1 deletion paddle/phi/kernels/xpu/xpu_api_wrapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,10 @@ inline XPUFCCalcType FCCalcType() {
{"XPU_PADDLE_FC_INT32_WITH_LL", XPUFCCalcType::FC_INT32_WITH_LL},
};
#ifdef PADDLE_WITH_XPU_XRE5
auto default_calc_type = XPUFCCalcType::FC_TF32;
// Use full float32 accumulation by default for better precision, matching
// the GPU default (FLAGS_cublas_allow_tf32=false). Users who need TF32
// performance can set env var XPU_PADDLE_FC_TF32.
auto default_calc_type = XPUFCCalcType::FC_FLOAT;
#else
auto default_calc_type = XPUFCCalcType::FC_INT16;
#endif
Expand Down
Loading