Merge "SWDEV-216213 - Delete kernel function_ in hip::Function destructor" into amd-master-next

[ROCm/hip commit: 79834f3d0f]
这个提交包含在:
Christophe Paquot 编写, Gerrit Code Review 于 2020-05-04 11:36:52 -04:00 提交
2 父节点 9dda8e0a31 6a5c3ae908
当前提交 adae775a90
1 个文件已更改
+1
普通文件 -> 可执行文件
+1
查看文件
@@ -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); }