SWDEV-515426 - Remove HIP_USE_RUNTIME_UNBUNDLER (#205)

* remove HIP_USE_RUNTIME_UNBUNDLER
* clang-format
* Generic to use comgr
* Remove HIP_ALWAYS_USE_NEW_COMGR_UNBUNDLING_ACTION flag
* Removes runtime unbundling unused and debug Code
* Removes stale functions

[ROCm/clr commit: 81238db679]
This commit is contained in:
Belton-Schure, Aidan
2025-07-08 17:15:31 +01:00
committed by GitHub
parent 8e8dc41cf0
commit 88c1717658
5 changed files with 40 additions and 672 deletions
+5 -22
View File
@@ -48,19 +48,6 @@ class CodeObject {
size_t binary_size);
static hipError_t build_module(hipModule_t hmod, const std::vector<amd::Device*>& devices);
// Given an file desc and file size, extracts to code object for corresponding devices,
// return code_objs{binary_ptr, binary_size}, which could be used to determine foffset
static hipError_t ExtractCodeObjectFromFile(amd::Os::FileDesc fdesc, size_t fsize,
const void ** image, const std::vector<std::string>& device_names,
std::vector<std::pair<const void*, size_t>>& code_objs, size_t foffset);
// Given an ptr to memory, extracts to code object for corresponding devices,
// returns code_objs{binary_ptr, binary_size} and uniform resource indicator
static hipError_t ExtractCodeObjectFromMemory(const void* data,
const std::vector<std::string>& device_names,
std::vector<std::pair<const void*, size_t>>& code_objs,
std::string& uri);
static uint64_t ElfSize(const void* emi);
static bool IsClangOffloadMagicBundle(const void* data, bool& isCompressed);
@@ -97,17 +84,13 @@ class CodeObject {
// Query the generic target of agent target.
// Return true on successfull query, false on failure
static bool QueryGenericTarget(std::string agentTarget, std::string& processor,
char& sram_ecc, char& xnack);
protected:
//Given an ptr to image or file, extracts to code object
//for corresponding devices
static hipError_t extractCodeObjectFromFatBinary(const void*,
const std::vector<std::string>&,
std::vector<std::pair<const void*, size_t>>&);
static bool QueryGenericTarget(std::string agentTarget, std::string& processor, char& sram_ecc,
char& xnack);
protected:
CodeObject() {}
private:
private:
friend const std::vector<hipModule_t>& modules();
};