Skip to content

Adopt released OpenCL helpers for safer buffers and optional loading - #16

Merged
antono3 merged 1 commit into
mainfrom
improve/opencl-reliability-20261014
Oct 14, 2026
Merged

antono3 merged 1 commit into
mainfrom
improve/opencl-reliability-20261014

Conversation

@antono3

@antono3 antono3 commented Oct 14, 2026

Copy link
Copy Markdown
Collaborator

An OpenCL-enabled build currently links the loader at process startup, chooses the first enumerated device, and releases old buffers before allocating replacements. Adopt the released OpenCL 1.1.0 helpers so device selection checks availability/compiler support, scratch growth preserves existing storage on failure, and newly created scratch owners are cleaned up if dispatch fails.

Document and test a dynamically loaded build that starts without OpenCL and uses the deterministic CPU fallback. Keep GPU preference, the existing scan kernels, CPU verification and stable entity ordering. Keep Vulkan 3.2.2 to match the allocator's transitive pin; Vulkan 3.3.0 is published separately for future instrumentation work.

Validation: full local check.sh passed (simulation/runtime tests, deterministic checksums, OpenCL, Vulkan startup, keyboard/replay UI); the OpenCL sim suite passed with compiler fallback disabled. Focused cleanup and reservation tests pass. Dynamic GCC and TinyCC runs preserve all seven checksums with a working loader and a deliberately missing loader. Dependency graph, distribution tests (5), guide anchors and diff checks pass. CI now exercises GCC/TinyCC dynamic loading on Linux and dynamic compilation/missing-runtime startup on Windows, alongside the existing package consumers.

@antono3
antono3 merged commit c9f90f5 into main Oct 14, 2026
8 checks passed
@antono3
antono3 deleted the improve/opencl-reliability-20261014 branch October 14, 2026 13:58
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