Skip to content

Commit

Permalink
Fixing an index error introduced in PR #1109 (#1110)
Browse files Browse the repository at this point in the history
My PR #1109 has an index error, pointed out by @benfred in [this](#1109 (comment)) comment.

Authors:
  - Vinay Deshpande (https://github.com/vinaydes)

Approvers:
  - Ben Frederickson (https://github.com/benfred)
  - Corey J. Nolet (https://github.com/cjnolet)

URL: #1110
  • Loading branch information
vinaydes authored Dec 21, 2022
1 parent aec0948 commit 0612284
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpp/test/random/sample_without_replacement.cu
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ const std::vector<SWoRInputs<float>> inputsf = {{1024, 512, -1, 0.f, GenPhilox,
if (params.largeWeightIndex >= 0) { \
ASSERT_TRUE((h_outIdx[0] == params.largeWeightIndex) || \
(h_outIdx[1] == params.largeWeightIndex) || \
(h_outIdx[3] == params.largeWeightIndex)); \
(h_outIdx[2] == params.largeWeightIndex)); \
} \
} while (false)

Expand Down

0 comments on commit 0612284

Please sign in to comment.