-
Notifications
You must be signed in to change notification settings - Fork 14.4k
[Offload] Add a stub unloadBinaryImpl for host device #145716
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@llvm/pr-subscribers-offload Author: Ross Brunton (RossBrunton) ChangesFull diff: https://github.com/llvm/llvm-project/pull/145716.diff 1 Files Affected:
diff --git a/offload/plugins-nextgen/host/src/rtl.cpp b/offload/plugins-nextgen/host/src/rtl.cpp
index ced9208acaedc..817a6c6d87d13 100644
--- a/offload/plugins-nextgen/host/src/rtl.cpp
+++ b/offload/plugins-nextgen/host/src/rtl.cpp
@@ -147,6 +147,14 @@ struct GenELF64DeviceTy : public GenericDeviceTy {
/// Initialize the device, which is a no-op
Error initImpl(GenericPluginTy &Plugin) override { return Plugin::success(); }
+ /// Unload the binary image
+ ///
+ /// TODO: This currently does nothing, and should be implemented as part of
+ /// broader memory handling logic for this plugin
+ Error unloadBinaryImpl(DeviceImageTy *) override {
+ return Plugin::success();
+ }
+
/// Deinitialize the device, which is a no-op
Error deinitImpl() override { return Plugin::success(); }
|
✅ With the latest revision this PR passed the C/C++ code formatter. |
/// | ||
/// TODO: This currently does nothing, and should be implemented as part of | ||
/// broader memory handling logic for this plugin | ||
Error unloadBinaryImpl(DeviceImageTy *) override { return Plugin::success(); } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You likely want DynamicLibrary::closeLibrary()
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shall I do that as a separate change, and just merge this as is to unbreak the buildbot?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, though honestly there's probably a lot that needs to be fixed about this plugin.
No description provided.