SWDEV-356549 - del Null strm in destroyAllStreams

Change-Id: Ie04172ee39e6333247d07791dffda753a8b9ef41
This commit is contained in:
pghafari
2022-09-29 00:02:20 -04:00
committed by Payam Ghafari
parent 95b2441cbc
commit a643c199de
5 changed files with 29 additions and 6 deletions
+1 -3
View File
@@ -464,9 +464,7 @@ hipError_t hipDeviceGetSharedMemConfig ( hipSharedMemConfig * pConfig ) {
hipError_t hipDeviceReset ( void ) {
HIP_INIT_API(hipDeviceReset);
hip::Device* dev = hip::getCurrentDevice();
hip::Stream::destroyAllStreams(dev->deviceId());
amd::MemObjMap::Purge(dev->devices()[0]);
hip::getCurrentDevice()->Reset();
HIP_RETURN(hipSuccess);
}