SWDEV-447973 - Support generic targets
Change-Id: I32db83843e45e0f013591493aafd7a532c881e16
[ROCm/clr commit: f1f4f40c5b]
이 커밋은 다음에 포함됨:
1 부모
3e8d5599d4
커밋
f3e3d8178b
8 파일이 변경됨
+303
-49
검색과 일치하는 파일 없음
@@ -52,7 +52,7 @@ class CodeObject {
|
||||
// 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);
|
||||
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
|
||||
@@ -65,6 +65,12 @@ class CodeObject {
|
||||
|
||||
static bool IsClangOffloadMagicBundle(const void* data, bool& isCompressed);
|
||||
|
||||
static unsigned int getGenericVersion(const void* image);
|
||||
|
||||
static bool isGenericTarget(const void* image);
|
||||
|
||||
static bool containGenericTarget(const void *data);
|
||||
|
||||
// Return size of fat bin
|
||||
static size_t getFatbinSize(const void* data, const bool isCompressed = false);
|
||||
|
||||
|
||||
새 이슈에서 참조
사용자 차단