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

import gdb

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

[docs]class clReleaseMemObjectBP(capture.OpenCLFunctionBreakpoint): func_type = mcgdb.capture.FunctionTypes.define_func def __init__(self): capture.OpenCLFunctionBreakpoint.__init__(self, "clReleaseMemObject")
[docs] def prepare_before (self): data = {} data["buffer"] = my_archi.first_arg(my_archi.VOID_P) representation.releaseBuffer(data["buffer"]) return (False, False, data)
[docs]def activate(): clReleaseMemObjectBP()