diff --git a/paddle/fluid/framework/fleet/ps_gpu_wrapper.cc b/paddle/fluid/framework/fleet/ps_gpu_wrapper.cc index 4b7034aa5c45704d825413035e76d7b4c44638a2..159287a2c3775578454dea22cb4feb64c39fab2f 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();