libhsakmt: work around VaMgr free_list_ size is not 1
In some cases, the upper modules of rocr-runtime did not free all of the memories at the end of the application's life time, it causes below error logs: pid:13066 tid:0x7f08718c4080 [~VaMgr] free_list_ size is not 1. pid:13066 tid:0x7f08718c4080 [~VaMgr] frag_map_ size is not 1. Change the log level from debug to info to work around this problem. Signed-off-by: tiancyin <tianci.yin@amd.com>
This commit is contained in:
+2
-2
@@ -18,9 +18,9 @@ VaMgr::VaMgr(uint64_t start, uint64_t size, uint64_t min_align) {
|
||||
VaMgr::~VaMgr() {
|
||||
|
||||
if (free_list_.size() != 1)
|
||||
pr_err("free_list_ size is not 1.\n");
|
||||
pr_warn("free_list_ size:%ld which should be 1.\n", free_list_.size());
|
||||
if (frag_map_.size() != 1)
|
||||
pr_err("frag_map_ size is not 1.\n");
|
||||
pr_warn("frag_map_ size:%ld which should be 1.\n", frag_map_.size());
|
||||
|
||||
free_list_.clear();
|
||||
frag_map_.clear();
|
||||
|
||||
Reference in New Issue
Block a user