SWDEV-216213 - Delete kernel function_ in hip::Function destructor

Change-Id: I0f6c44927f453ac63b5b84552a5fba07f04a8a8e


[ROCm/hip commit: 6bad7ef790]
Cette révision appartient à :
kjayapra-amd a révisé 2020-05-03 23:08:58 -04:00
1 Parent c312f36eda
révision 6a5c3ae908
1 fichier modifié
+1
Fichier normal → Fichier exécutable
+1
Voir le fichier
@@ -177,6 +177,7 @@ namespace hip {
amd::Monitor lock_;
Function(amd::Kernel* f) : function_(f), lock_("function lock") {}
~Function() { function_->release(); }
hipFunction_t asHipFunction() { return reinterpret_cast<hipFunction_t>(this); }
static Function* asFunction(hipFunction_t f) { return reinterpret_cast<Function*>(f); }