Repository navigation
Fix race detected in Parquet writer - #14598
Conversation
|
/ok to test |
| __syncthreads(); | ||
| auto const total_len = block_reduce(reduce_storage).Sum(len); | ||
| auto const total_len = block_reduce(reduce_storage).Sum(len); | ||
| __syncthreads(); |
There was a problem hiding this comment.
Right, I hesitated to bring this up since the CI didn't complain. Generally, a sync in-between is required when the same temp storage is used for different reductions.
There was a problem hiding this comment.
I was worried too, but dug into the Sum code and saw that there were syncthreads inside and convinced myself it was ok :(
| __syncthreads(); | ||
| auto const total_len = block_reduce(reduce_storage).Sum(len); | ||
| auto const total_len = block_reduce(reduce_storage).Sum(len); | ||
| __syncthreads(); |
There was a problem hiding this comment.
So we really need two sync like this?
There was a problem hiding this comment.
perhaps the first one is unecessary, but now I'm scared to change it 😬
There was a problem hiding this comment.
hm, maybe we should remove it if racecheck does not complain
There was a problem hiding this comment.
I'll try removing it and see...
Yep, no racecheck problems (beyond the nvcomp and decode ones) without the first sync.
There was a problem hiding this comment.
I'll try removing it and see
trying this on my end as well
What is racecheck?
racecheck tool in compute-sanitizer
There was a problem hiding this comment.
no racecheck errors, and, looking at the code, no shared data is modified before the reductions. IMHO we should be good to remove the first sync.
vuule
left a comment
There was a problem hiding this comment.
Thank you for looking into this issue promptly!
Hopefully that's the last of the ManyFragments failures.
|
/ok to test |
|
/merge |
While investigating NVIDIA#14597 it was found that there was a race introduced by NVIDIA#14000. Adding a sync between invocations of a block reduce resolves the error. Authors: - Ed Seidl (https://github.com/etseidl) Approvers: - Yunsong Wang (https://github.com/PointKernel) - Vukasin Milovanovic (https://github.com/vuule) - Nghia Truong (https://github.com/ttnghia) URL: NVIDIA#14598
Description
While investigating #14597 it was found that there was a race introduced by #14000. Adding a sync between invocations of a block reduce resolves the error.
Checklist