MCPcopy Create free account
hub / github.com/ROCm/clr / IsCodeObjectElf

Function IsCodeObjectElf

hipamd/src/hip_fatbin.cpp:241–244  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

239}
240
241static bool IsCodeObjectElf(const void* image) {
242 const amd::Elf64_Ehdr* ehdr = reinterpret_cast<const amd::Elf64_Ehdr*>(image);
243 return ehdr->e_machine == EM_AMDGPU && ehdr->e_ident[EI_OSABI] == ELFOSABI_AMDGPU_HSA;
244}
245
246static bool UncompressAndPopulateCodeObject(
247 const void* image, const std::set<std::string>& unique_isa_names,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected