Re-enabled metadata parsing in HIP
Change-Id: If8caa844571cb8581450df9ffdb76e2445c75f13
This commit is contained in:
+2
-2
@@ -202,7 +202,7 @@ hipError_t hipModuleLoad(hipModule_t *module, const char *fname){
|
||||
(*module)->size = size;
|
||||
in.seekg(0, std::ios::beg);
|
||||
std::copy(std::istreambuf_iterator<char>(in), std::istreambuf_iterator<char>(), ptr);
|
||||
/* Enable for metadata implementation
|
||||
|
||||
Elf *e = elf_memory((char*)p, size);
|
||||
if(elf_kind(e) != ELF_K_ELF){
|
||||
return ihipLogStatus(hipErrorInvalidValue);
|
||||
@@ -251,7 +251,7 @@ hipError_t hipModuleLoad(hipModule_t *module, const char *fname){
|
||||
}
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
||||
status = hsa_code_object_deserialize(ptr, size, NULL, &(*module)->object);
|
||||
|
||||
if(status != HSA_STATUS_SUCCESS){
|
||||
|
||||
Reference in New Issue
Block a user