Skip to content

opencl: batch profiling to prevent resource exhaustion#23495

Open
shaofeiqi wants to merge 1 commit into
ggml-org:masterfrom
qualcomm:sq/opencl-batch-profiling
Open

opencl: batch profiling to prevent resource exhaustion#23495
shaofeiqi wants to merge 1 commit into
ggml-org:masterfrom
qualcomm:sq/opencl-batch-profiling

Conversation

@shaofeiqi
Copy link
Copy Markdown
Contributor

Overview

With GGML_OPENCL_PROFILING enabled, events accumulate until shutdown, causing resource exhaustion and slowdown.

This PR refactors the OpenCL profiling logic to batch and flush profiling data, preventing memory leak, while also improving overall profiling efficiency.

Requirements

@shaofeiqi shaofeiqi requested a review from a team as a code owner May 21, 2026 20:07
@github-actions github-actions Bot added ggml changes relating to the ggml tensor library for machine learning OpenCL Issues specific to the OpenCL backend labels May 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ggml changes relating to the ggml tensor library for machine learning OpenCL Issues specific to the OpenCL backend

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant