SWDEV-268552 - HIP sample segfaults during hipModuleLoad, fix mmap bug

Change-Id: I51c6061e7ac6b2524586d96fdd69b9f084b1906a
This commit is contained in:
agodavar authored and Anusha Godavarthy Surya committed 2021-01-27 23:39:50 -05:00
1 parent 2314fe2e3a
commit aac12d1bd9
6 files changed
+166 -39

No files matched your search

+1 -1
View File
@@ -52,7 +52,7 @@ class CodeObject {
// 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 std::vector<std::string>& device_names,
const void ** image, const std::vector<std::string>& device_names,
std::vector<std::pair<const void*, size_t>>& code_objs);
// Given an ptr to memory, extracts to code object for corresponding devices,