Fix gather/scatter fast division bug#3059
Conversation
tarang-jain
left a comment
There was a problem hiding this comment.
LGTM! Thanks for the fix.
|
Actually, can we add a test for this diff? We could either add a test for FastIntDiv directly, or we can test the |
| inplace_inputs_i64); | ||
| GATHER_TEST((GatherTest<false, false, true, float, int64_t, int64_t>), | ||
| GatherInplaceTestCI64I64, | ||
| inplace_inputs_i64_i32_max); // slow test, 8GB allocation, reproduces https://github.com/rapidsai/raft/issues/3055 |
There was a problem hiding this comment.
@tfeher @tarang-jain Only float type is possible here (8GB allocation, 100ms). I would suggest to not have it. I already added a regression test for the fix in fast_int_div.cu
There was a problem hiding this comment.
I think it is fine to spend 100ms on this.
tfeher
left a comment
There was a problem hiding this comment.
Thanks Huy for the fix, LGTM!
| inplace_inputs_i64); | ||
| GATHER_TEST((GatherTest<false, false, true, float, int64_t, int64_t>), | ||
| GatherInplaceTestCI64I64, | ||
| inplace_inputs_i64_i32_max); // slow test, 8GB allocation, reproduces https://github.com/rapidsai/raft/issues/3055 |
There was a problem hiding this comment.
I think it is fine to spend 100ms on this.
|
/ok to test 9acb86f |
|
/ok to test 33ec5d7 |
|
/ok to test b18e428 |
|
/ok to test dc2ede3 |
- gather/scatter crashes at int32 boundary even when it advertises int64 type. This change fixes this issue. - int64 is still not supported for performance reason with int128.
|
/ok to test 9f3d2cb |
|
/ok to test d87dcdd |
|
/merge |
1 similar comment
|
/merge |
|
/merge |
1 similar comment
|
/merge |
|
Hello @huuanhhuyn, going forward let's remember to build cuvs and build cuml at the least to ensure that raft doesn't cause any breakages. This PR is causing some breakages currently. |
Add explicit template parameters for FastIntDiv, follow up to NVIDIA/raft#3059. Authors: - Anupam (https://github.com/aamijar) Approvers: - Jim Crist-Harif (https://github.com/jcrist) URL: #8299
raft::matrix::gather/scatter crashes at int32 boundary even when it advertises int64 type -> issue 3055. This PR fixes this issue.
int64 is still not supported for performance reason with int128.
closes #3055