Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lj970926 committed May 13, 2024
1 parent c09ba34 commit 327287e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/xpu/cpp/xpu_overload_alloc_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ TEST(XPUOverloadAllocTest, EnvTest) {
phi::XPUContext dev_ctx_overload(
phi::XPUPlace(phi::backends::xpu::GetXPUCurrentDeviceId()));
EXPECT_STREQ(dev_ctx_overload.x_context()->get_option("XPUAPI_DEFAULT_SIZE"),
"1");
"0");
EXPECT_NE(dev_ctx_overload.x_context()->overload_alloc_gm, nullptr);
// do not use alloc overload
setenv("XPU_PADDLE_DISABLE_ALLOC_OVERLOAD", "1", 1);
Expand Down

0 comments on commit 327287e

Please sign in to comment.