Skip to content

Commit

Permalink
fix xpu retry allocator bug (#54847)
Browse files Browse the repository at this point in the history
  • Loading branch information
ykkk2333 authored Jun 27, 2023
1 parent 158b7ae commit 5bbbf5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion paddle/fluid/platform/device/xpu/xpu_info.cc
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ phi::backends::xpu::XPUVersion get_xpu_version(int dev_id) {
size_t XPUMinChunkSize() { return 1 << 6; }

static void RaiseNonOutOfMemoryError(int status) {
if (status == XPUERR_NOMEM) {
if (-1 * status == XPUERR_NOMEM) {
status = XPU_SUCCESS;
}
PADDLE_ENFORCE_XRE_SUCCESS(status);
Expand Down

0 comments on commit 5bbbf5d

Please sign in to comment.