Fix gather/scatter fast division bug#3059
Conversation
- 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.
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 |
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