Skip to content

[VL] Clean up GPU code: remove dead/redundant code#11824

Open
acvictor wants to merge 1 commit intoapache:mainfrom
acvictor:acvictor/gpu1
Open

[VL] Clean up GPU code: remove dead/redundant code#11824
acvictor wants to merge 1 commit intoapache:mainfrom
acvictor:acvictor/gpu1

Conversation

@acvictor
Copy link
Contributor

What changes are proposed in this pull request?

Minor cleanup of GPU code to remove redundant !gGpuOwner.has_value() check in unlockGpu(), unnecessary buffer flush from std::endl in log and remove unreachable return true after throw in resolveNextBlockType().

How was this patch tested?

Existing tests

Was this patch authored or co-authored using generative AI tooling?

No

@github-actions github-actions bot added the VELOX label Mar 25, 2026
@weiting-chen weiting-chen mentioned this pull request Mar 25, 2026
60 tasks
@acvictor acvictor marked this pull request as ready for review March 25, 2026 14:34
@acvictor
Copy link
Contributor Author

@jinchengchenghh can you please review? The CI failures seem unrelated. Thanks!

if (!getGpuLockState().gGpuOwner.has_value() || getGpuLockState().gGpuOwner != tid) {
throw std::runtime_error("unlockGpu() called by other-owner thread!");
if (getGpuLockState().gGpuOwner != tid) {
throw std::runtime_error("unlockGpu() called by non-owner thread!");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

called by other thread!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants