[all-commits] [llvm/llvm-project] 003145: [Offload] Implement `olShutDown` (#144055)
Ross Brunton via All-commits
all-commits at lists.llvm.org
Mon Jun 30 04:14:23 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 003145d0c8d5417d7b7ef1eb40838bc0fb50e229
https://github.com/llvm/llvm-project/commit/003145d0c8d5417d7b7ef1eb40838bc0fb50e229
Author: Ross Brunton <ross at codeplay.com>
Date: 2025-06-30 (Mon, 30 Jun 2025)
Changed paths:
M offload/liboffload/API/Common.td
M offload/liboffload/src/OffloadImpl.cpp
M offload/unittests/OffloadAPI/init/olInit.cpp
Log Message:
-----------
[Offload] Implement `olShutDown` (#144055)
`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.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list