Make syncthreads() in parallel_xexec multi-use#1062
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1062 +/- ##
=======================================
Coverage 94.16% 94.16%
=======================================
Files 48 48
Lines 4751 4751
=======================================
Hits 4474 4474
Misses 277 277
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
lukaszstolarczuk
left a comment
There was a problem hiding this comment.
Reviewed 3 of 3 files at r1.
Reviewable status: all files reviewed, 3 unresolved discussions (waiting on @igchor)
tests/common/helpers_test.cpp, line 12 at r1 (raw file):
int main()
pls add a short comment what's in this test
tests/common/helpers_test.cpp, line 26 at r1 (raw file):
counter++;
you could add info that new latch is allocated here (if that's meaningful - I'm not sure... ;) )
tests/common/helpers_test.cpp, line 31 at r1 (raw file):
syncthreads(); }); }
counter is still equal to concurrency * 2 at the end of main..? maybe we could assert that too
98e990e to
4113de4
Compare
igchor
left a comment
There was a problem hiding this comment.
Reviewable status: all files reviewed, 3 unresolved discussions (waiting on @lukaszstolarczuk)
tests/common/helpers_test.cpp, line 12 at r1 (raw file):
Previously, lukaszstolarczuk (Łukasz Stolarczuk) wrote…
pls add a short comment what's in this test
Done.
tests/common/helpers_test.cpp, line 26 at r1 (raw file):
Previously, lukaszstolarczuk (Łukasz Stolarczuk) wrote…
you could add info that new latch is allocated here (if that's meaningful - I'm not sure... ;) )
I think that should not matter here - the fact that we allocate new latch is an implementation detail, this should just work :)
tests/common/helpers_test.cpp, line 31 at r1 (raw file):
Previously, lukaszstolarczuk (Łukasz Stolarczuk) wrote…
counter is still equal to
concurrency * 2at the end of main..? maybe we could assert that too
Done.
4113de4 to
08f9071
Compare
lukaszstolarczuk
left a comment
There was a problem hiding this comment.
Reviewed 1 of 1 files at r2.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @igchor)
08f9071 to
9245622
Compare
igchor
left a comment
There was a problem hiding this comment.
Done.
Reviewable status:
complete! all files reviewed, all discussions resolved (waiting on @igchor)
KFilipek
left a comment
There was a problem hiding this comment.
Reviewed 2 of 3 files at r1, 1 of 1 files at r3.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @igchor)
052f360 to
abac109
Compare
Previously syncthreads could only be used once and this was not documented. This patch allows for having multiple synchronization points in a function. This might useful for testing hazard pointers.
abac109 to
79ed022
Compare
lukaszstolarczuk
left a comment
There was a problem hiding this comment.
Reviewed 1 of 1 files at r3, 2 of 2 files at r4.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @igchor)
Previously syncthreads could only be used once and this was not
documented. This patch allows for having multiple synchronization
points in a function. This might useful for testing hazard pointers.
This change is