-
Notifications
You must be signed in to change notification settings - Fork 240
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adds RapidsBufferHandle as an indirection layer to RapidsBufferId #7512
Adds RapidsBufferHandle as an indirection layer to RapidsBufferId #7512
Conversation
build |
Signed-off-by: Alessandro Bellina <[email protected]>
ffdf9ba
to
e190406
Compare
build |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not done with the review yet...
sql-plugin/src/main/scala/com/nvidia/spark/rapids/RapidsBufferCatalog.scala
Show resolved
Hide resolved
sql-plugin/src/main/scala/com/nvidia/spark/rapids/RapidsBufferCatalog.scala
Show resolved
Hide resolved
build |
I just made a simplification to the design here and will push a commit (and if we are ok with it I'll update the description). Sprinkled throughout the test code I had This means I can remove a bunch of makeNewHandle boilerplate code. |
build |
build |
build |
build |
1 similar comment
build |
build |
@@ -217,6 +396,10 @@ object RapidsBufferCatalog extends Logging with Arm { | |||
} | |||
|
|||
private def closeImpl(): Unit = { | |||
if (singleton != null) { | |||
singleton.close() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: I am confused by this. singleton is a val
and it is set at startup. When will it ever be null?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a good eye, I'll clean this up
sql-plugin/src/main/scala/com/nvidia/spark/rapids/RapidsBufferCatalog.scala
Outdated
Show resolved
Hide resolved
sql-plugin/src/main/scala/com/nvidia/spark/rapids/RapidsBufferCatalog.scala
Outdated
Show resolved
Hide resolved
sql-plugin/src/main/scala/com/nvidia/spark/rapids/RapidsBufferCatalog.scala
Outdated
Show resolved
Hide resolved
sql-plugin/src/main/scala/com/nvidia/spark/rapids/RapidsBufferCatalog.scala
Show resolved
Hide resolved
sql-plugin/src/main/scala/com/nvidia/spark/rapids/RapidsBufferCatalog.scala
Outdated
Show resolved
Hide resolved
sql-plugin/src/main/scala/com/nvidia/spark/rapids/ShuffleBufferCatalog.scala
Outdated
Show resolved
Hide resolved
sql-plugin/src/main/scala/com/nvidia/spark/rapids/SpillableColumnarBatch.scala
Outdated
Show resolved
Hide resolved
sql-plugin/src/main/scala/org/apache/spark/sql/rapids/execution/GpuBroadcastExchangeExec.scala
Show resolved
Hide resolved
tests/src/test/scala/com/nvidia/spark/rapids/shuffle/RapidsShuffleClientSuite.scala
Show resolved
Hide resolved
tests/src/test/scala/com/nvidia/spark/rapids/shuffle/RapidsShuffleTestHelper.scala
Show resolved
Hide resolved
build |
build |
1 similar comment
build |
Contributes to #6864
This PR adds a
RapidsBufferHandle
which is to be used outside of the spill framework. What I am going for here is that stores only work withRapidsBufferId
and the catalogs only deal withRapidsBufferHandle
and the mapping between them. TheRapidsBufferCatalog
owns these handles.What this PR allows us to do but is not included here is the ability to have multiple handles to a buffer. In a subsequent PR, we will detect a collision and return a new handle, but keep the original
RapidsBuffer
and its id.I am posting this to run through CI mostly and to get some feedback. I need to a bit more manual testing.