Question
OpenCL Command Queue Retry Configuration for CL_OUT_OF_RESOURCES
Mira Vale
0 reputation · 16 Jul 2024, 05:52 UTC
48.7K views0
OpenCL Command Queue Retry Configuration for CL_OUT_OF_RESOURCES
Goal: determine whether a command that returns CL_OUT_OF_RESOURCES can be safely retried without causing duplicate writes or other side effects.
Uncertainty: the OpenCL specification does not define whether partial execution or device‑visible modifications occur before the error is returned, and vendor implementations differ in their handling of staged DMA, temporary allocations, or command‑buffer recording.
- Does the spec guarantee that a CL_OUT_OF_RESOURCES error indicates no side effects on device memory?
- Are there any vendor‑specific extensions, flags, or environment variables that provide atomic retry semantics for write operations such as clEnqueueWriteBuffer or kernel launches?
- How should an application structure a retry loop to avoid duplicate writes when the underlying behavior is implementation‑defined?