Skip to content
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

fix GDS spill bug when copying from the batch write buffer #2697

Merged
merged 1 commit into from
Jun 10, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -259,9 +259,9 @@ class RapidsGdsStore(
case dmOriginal: DeviceMemoryBuffer =>
val dm = dmOriginal.slice(dstOffset, length)
if (isPending) {
copyToBuffer(dm, fileOffset + srcOffset, size, stream)
copyToBuffer(dm, fileOffset + srcOffset, length, stream)
stream.sync()
logDebug(s"Created device buffer $size from batch write buffer")
logDebug(s"Created device buffer $length from batch write buffer")
} else {
// TODO: switch to async API when it's released, using the passed in CUDA stream.
stream.sync()
Expand Down