Skip to content

Spinnaker Open CL Fixes - #43

Closed
guyfleeman wants to merge 26 commits into
masterfrom
dev/will/cl_dfree
Closed

guyfleeman wants to merge 26 commits into
masterfrom
dev/will/cl_dfree

Conversation

@guyfleeman

Copy link
Copy Markdown
Contributor

I caught a few things in testing I didn't catch on the first go.

There's a possible double free because of the Copy constructor in CLArray. I wrapped the raw pointed in a shared pointer with the free function overriden with munlock and free. This resolves that. It wasn't impacting the code as written, but exists as a bug and is very close to a foot gun with changes.

mlock function return logic was inverted to the print logic. https://pubs.opengroup.org/onlinepubs/9799919799/

Line 140 accidentally sets the CL_MEM_USE_HOST_PTR bit, instead of checks it. This results in a CL_INVALID_HOST_PTR error on some configuration paths.

@guyfleeman
guyfleeman requested a review from lixfel October 20, 2026 15:43
@guyfleeman guyfleeman self-assigned this Oct 20, 2026
@guyfleeman guyfleeman closed this Oct 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant