Skip to content

Commit

Permalink
common: change default pcie size to 8
Browse files Browse the repository at this point in the history
  • Loading branch information
ymjiang committed Jun 28, 2019
1 parent 9733f76 commit 7c4dd67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion byteps/common/nccl_manager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ void NcclManager::InitGlobalEnv() { // init all global env/param here
BPS_LOG(DEBUG) << "nccl_group_size" << " set to " << _nccl_group_size;

_nccl_pcie_size = (getenv("BYTEPS_PCIE_SWITCH_SIZE") ?
atoi(getenv("BYTEPS_PCIE_SWITCH_SIZE")) : 4);
atoi(getenv("BYTEPS_PCIE_SWITCH_SIZE")) : 8);
auto local_size = BytePSGlobal::GetLocalSize();
_nccl_pcie_num = local_size / _nccl_pcie_size;
if (!_nccl_pcie_num) {
Expand Down

0 comments on commit 7c4dd67

Please sign in to comment.