Skip to content

Commit fb92b85

Browse files
generatedunixname537391475639613meta-codesync[bot]
authored andcommitted
Fix CQS signal clang-diagnostic-shadow in fbcode/comms/ncclx
Reviewed By: cenzhaometa Differential Revision: D86188918 fbshipit-source-id: 00aa3b6aa2675ba6c98dabf2fcd0904fa5b87d9e
1 parent 68a9391 commit fb92b85

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

comms/ncclx/v2_27/meta/tests/CommSplitTest.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,15 @@ class CommSplitTest : public ::testing::Test {
3939
cudaMemcpyHostToDevice));
4040
}
4141

42-
int checkAllReduceResult(int numRanks) {
42+
int checkAllReduceResult(int commNumRanks) {
4343
std::vector<int> observedVals(this->dataCount, -1);
4444
CUDACHECK_TEST(cudaMemcpy(
4545
observedVals.data(),
4646
this->dataBuf,
4747
this->dataCount * sizeof(int),
4848
cudaMemcpyDefault));
4949

50-
const int sumRanks = numRanks * (numRanks - 1) / 2;
50+
const int sumRanks = commNumRanks * (commNumRanks - 1) / 2;
5151
int errs = 0;
5252
// Use manual print rather than EXPECT_THAT to print failing location
5353
for (auto i = 0; i < this->dataCount; i++) {

0 commit comments

Comments
 (0)