Source code for mcgdb.model.gpu.environment.opencl.capture.clReleaseKernel

import gdb

import mcgdb
from mcgdb.toolbox.target import my_archi
from mcgdb.model.gpu import representation, capture
from .. import user

[docs]class clReleaseKernelBP(capture.OpenCLFunctionBreakpoint): func_type = mcgdb.capture.FunctionTypes.define_func def __init__(self): capture.OpenCLFunctionBreakpoint.__init__(self, "clReleaseKernel")
[docs] def prepare_before (self): data = {} data["kernel"] = my_archi.first_arg(my_archi.VOID_P) representation.releaseKernel(data["kernel"]) return (False, False, None)
[docs]def activate(): clReleaseKernelBP()