Fix NCCL test hang (#9367)

This commit is contained in:
Rong Ou
2023-07-06 20:21:35 -07:00
committed by GitHub
parent 41c6813496
commit 15ca12a77e
4 changed files with 36 additions and 8 deletions

View File

@@ -16,7 +16,7 @@ namespace xgboost {
namespace collective {
TEST(NcclDeviceCommunicatorSimpleTest, ThrowOnInvalidDeviceOrdinal) {
auto construct = []() { NcclDeviceCommunicator comm{-1}; };
auto construct = []() { NcclDeviceCommunicator comm{-1, false}; };
EXPECT_THROW(construct(), dmlc::Error);
}