Merge "SWDEV-216213 - Delete kernel function_ in hip::Function destructor" into amd-master-next
[ROCm/clr commit: 2ff8f533a4]
This commit is contained in:
Regular → Executable
+1
@@ -177,6 +177,7 @@ namespace hip {
|
|||||||
amd::Monitor lock_;
|
amd::Monitor lock_;
|
||||||
|
|
||||||
Function(amd::Kernel* f) : function_(f), lock_("function lock") {}
|
Function(amd::Kernel* f) : function_(f), lock_("function lock") {}
|
||||||
|
~Function() { function_->release(); }
|
||||||
hipFunction_t asHipFunction() { return reinterpret_cast<hipFunction_t>(this); }
|
hipFunction_t asHipFunction() { return reinterpret_cast<hipFunction_t>(this); }
|
||||||
|
|
||||||
static Function* asFunction(hipFunction_t f) { return reinterpret_cast<Function*>(f); }
|
static Function* asFunction(hipFunction_t f) { return reinterpret_cast<Function*>(f); }
|
||||||
|
|||||||
Reference in New Issue
Block a user