Skip to content

Commit

Permalink
fix bug for whole hbm mode (PaddlePaddle#110)
Browse files Browse the repository at this point in the history
Co-authored-by: yangjunchao <yangjunchao@baidu.com>
  • Loading branch information
chao9527 and yangjunchao authored Sep 13, 2022
1 parent 582d236 commit cc71f56
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion paddle/fluid/framework/fleet/ps_gpu_wrapper.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1100,7 +1100,12 @@ void PSGPUWrapper::SparseTableToHbm() {
add_key_to_local(vec_data);
add_key_to_gputask(gpu_task);
BuildPull(gpu_task);
PrepareGPUTask(gpu_task);
if (!multi_mf_dim_) {
PrepareGPUTask(gpu_task);
}
else {
divide_to_device(gpu_task);
}
BuildGPUTask(gpu_task);
current_task_ = gpu_task;
hbm_sparse_table_initialized_ = true;
Expand Down

0 comments on commit cc71f56

Please sign in to comment.