SWDEV-304151 - Reset file descriptor after Module Load
File descriptors opened during hipModuleLoad are not closed until hipModuleUnLoad. In large models, this exceeds the ulimit for no. of open file descriptors causing out of resource issues. Hence, close the file descriptors once the required data is read from the file, and not wait until unload. Change-Id: Ic50d424e5ca388715b1e6309a0de72a480321582
Αυτή η υποβολή περιλαμβάνεται σε:
@@ -509,6 +509,9 @@ hipError_t DynCO::loadCodeObject(const char* fname, const void* image) {
|
||||
// Define Global functions
|
||||
IHIP_RETURN_ONFAIL(populateDynGlobalFuncs());
|
||||
|
||||
// Resets the file info such as desc, size and name
|
||||
// as they are not necessary once the code object is loaded
|
||||
fb_info_->ResetFileInfo();
|
||||
return hipSuccess;
|
||||
}
|
||||
|
||||
|
||||
Αναφορά σε νέο ζήτημα
Block a user