This commit is contained in:
Evgeny
2018-02-02 15:38:28 -06:00
parent a3fc58e966
commit ff1e5b67a7
5 changed files with 55 additions and 7 deletions
+2 -2
View File
@@ -104,8 +104,8 @@ HsaRsrcFactory::HsaRsrcFactory() {
// Destructor of the class
HsaRsrcFactory::~HsaRsrcFactory() {
for (auto p : cpu_list_) free(const_cast<AgentInfo*>(p));
for (auto p : gpu_list_) free(const_cast<AgentInfo*>(p));
for (auto p : cpu_list_) delete p;
for (auto p : gpu_list_) delete p;
printf("HSA shutdown\n");
hsa_status_t status = hsa_shut_down();