File tree Expand file tree Collapse file tree 2 files changed +1
-4
lines changed
Expand file tree Collapse file tree 2 files changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -253,7 +253,6 @@ HSAPlatform::HSAPlatform(Runtime* runtime)
253253 return ;
254254 }
255255 CHECK_HSA (status, " hsa_init()" );
256- initialized_ = true ;
257256
258257 uint16_t version_major, version_minor;
259258 status = hsa_system_get_info (HSA_SYSTEM_INFO_VERSION_MAJOR, &version_major);
@@ -293,8 +292,7 @@ HSAPlatform::~HSAPlatform() {
293292 }
294293 }
295294
296- if (initialized_)
297- hsa_shut_down ();
295+ hsa_shut_down ();
298296}
299297
300298void * HSAPlatform::alloc_hsa (int64_t size, hsa_region_t region) {
Original file line number Diff line number Diff line change @@ -98,7 +98,6 @@ class HSAPlatform : public Platform {
9898
9999 uint64_t frequency_;
100100 std::vector<DeviceData> devices_;
101- bool initialized_;
102101
103102 void * alloc_hsa (int64_t , hsa_region_t );
104103 void * alloc_hsa (int64_t , hsa_amd_memory_pool_t );
You can’t perform that action at this time.
0 commit comments