Add support for code object URI to ROCr
Adds the following:
- New factory method to create a code object reader from
file with offset and size.
- A pair of queries on a loaded code object to get the URI name/length.
- A bump to the AMD vendor loader extension API and its associated table.
Change-Id: I17c83e9c2447d29a43c438459395365f786a3611
[ROCm/ROCR-Runtime commit: 9eb735ec24]
This commit is contained in:
1 bovenliggende
1d022d1d82
commit
b1f050524b
8 files changed
+461
-127
No files matched your search
@@ -324,6 +324,7 @@ public:
|
||||
uint64_t getLoadBase() const override;
|
||||
uint64_t getLoadSize() const override;
|
||||
int64_t getDelta() const override;
|
||||
std::string getUri() const override;
|
||||
|
||||
link_map r_debug_info;
|
||||
};
|
||||
@@ -435,6 +436,7 @@ public:
|
||||
hsa_agent_t agent,
|
||||
hsa_code_object_t code_object,
|
||||
const char *options,
|
||||
const std::string &uri,
|
||||
hsa_loaded_code_object_t *loaded_code_object) override;
|
||||
|
||||
hsa_status_t LoadCodeObject(
|
||||
@@ -442,6 +444,7 @@ public:
|
||||
hsa_code_object_t code_object,
|
||||
size_t code_object_size,
|
||||
const char *options,
|
||||
const std::string &uri,
|
||||
hsa_loaded_code_object_t *loaded_code_object) override;
|
||||
|
||||
hsa_status_t Freeze(const char *options) override;
|
||||
|
||||
Reference in new issue
Block a user