From b7b2a52753ae0fa6b7a1c1a19e38891fd771f38f Mon Sep 17 00:00:00 2001 From: wangzhen38 <41941775+wangzhen38@users.noreply.github.com> Date: Fri, 6 Jan 2023 15:17:21 +0800 Subject: [PATCH] [gpubox fix] benchmark (#49587) --- paddle/fluid/framework/fleet/ps_gpu_wrapper.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/paddle/fluid/framework/fleet/ps_gpu_wrapper.cc b/paddle/fluid/framework/fleet/ps_gpu_wrapper.cc index 4b7034aa5c4..159287a2c37 100644 --- a/paddle/fluid/framework/fleet/ps_gpu_wrapper.cc +++ b/paddle/fluid/framework/fleet/ps_gpu_wrapper.cc @@ -1398,9 +1398,11 @@ void PSGPUWrapper::build_task() { void PSGPUWrapper::BeginPass() { platform::Timer timer; +#if defined(PADDLE_WITH_GPU_GRAPH) && defined(PADDLE_WITH_HETERPS) if (FLAGS_gpugraph_storage_mode == GpuGraphStorageMode::WHOLE_HBM) { return; } +#endif timer.Start(); if (current_task_) { PADDLE_THROW( @@ -1426,9 +1428,11 @@ void PSGPUWrapper::BeginPass() { } void PSGPUWrapper::EndPass() { +#if defined(PADDLE_WITH_GPU_GRAPH) && defined(PADDLE_WITH_HETERPS) if (FLAGS_gpugraph_storage_mode == GpuGraphStorageMode::WHOLE_HBM) { return; } +#endif platform::Timer stagetime; stagetime.Start(); HbmToSparseTable(); -- GitLab