summaryrefslogtreecommitdiff
path: root/offload/unittests/OffloadAPI/init/olInit.cpp
AgeCommit message (Collapse)Author
2025-06-30[Offload] Implement `olShutDown` (#144055)Ross Brunton
`olShutDown` was not properly calling deinit on the platforms, resulting in random segfaults on AMD devices. As part of this, `olInit` and `olShutDown` now alloc and free the offload context rather than it being static. This allows `olShutDown` to be called within a destructor of a static object (like the tests do) without having to worry about destructor ordering.
2025-06-20[Offload] Check for initialization (#144370)Ross Brunton
All entry points (except olInit) now check that offload has been initialized. If not, a new `OL_ERRC_UNINITIALIZED` error is returned.