We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e35a2c0 commit 3f4137bCopy full SHA for 3f4137b
sycl/source/detail/device_image_impl.hpp
@@ -66,11 +66,13 @@ class ManagedDeviceGlobalsRegistry {
66
67
ManagedDeviceGlobalsRegistry(const ManagedDeviceGlobalsRegistry &) = delete;
68
69
- ~ManagedDeviceGlobalsRegistry() try {
70
- unregisterDeviceGlobalsFromContext();
71
- } catch (std::exception &e) {
72
- __SYCL_REPORT_EXCEPTION_TO_STREAM(
73
- "exception during unregistration of SYCL binaries", e);
+ ~ManagedDeviceGlobalsRegistry() {
+ try {
+ unregisterDeviceGlobalsFromContext();
+ } catch (std::exception &e) {
+ __SYCL_REPORT_EXCEPTION_TO_STREAM(
74
+ "exception during unregistration of SYCL binaries", e);
75
+ }
76
}
77
78
bool hasDeviceGlobalName(const std::string &Name) const noexcept {
0 commit comments