mcgdb.model.gpu package

Capture module

class mcgdb.model.gpu.capture.OpenCLFunctionBreakpoint(spec)[source]

Bases: mcgdb.capture.FunctionBreakpoint

do_check_prepare_before()[source]
mcgdb.model.gpu.capture.initialize()[source]

Interaction module

mcgdb.model.gpu.interaction.activate()[source]
class mcgdb.model.gpu.interaction.cmd_CleanFlow[source]

Bases: gdb.Command

invoke(args, from_tty)[source]
class mcgdb.model.gpu.interaction.cmd_InfoBuffers[source]

Bases: gdb.Command

invoke(args, from_tty)[source]
class mcgdb.model.gpu.interaction.cmd_InfoKernels[source]

Bases: gdb.Command

info kernels [+where] [{?+-}break +use_count] [{?+-}hide] [-unused]

invoke(args, from_tty)[source]
class mcgdb.model.gpu.interaction.cmd_InfoPrograms[source]

Bases: gdb.Command

info programs

invoke(args, from_tty)[source]
class mcgdb.model.gpu.interaction.cmd_PrintFlow[source]

Bases: gdb.Command

invoke(args, from_tty)[source]
class mcgdb.model.gpu.interaction.cmd_PrintOrg[source]

Bases: gdb.Command

invoke(args, from_tty)[source]
mcgdb.model.gpu.interaction.erase_common_prefix(old, new_)[source]

Representation module

class mcgdb.model.gpu.representation.Buffer(*args, **kws)[source]

Bases: object

OVERWRITTEN = 'OVERWRITTEN'
READ_AVAILABLE = 'READ_AVAILABLE'
READ_ONLY = 0
READ_WRITE = 1
TRANSFERED = 'TRANSFERED'
WRITE_AVAILABLE = 'WRITE_AVAILABLE'
WRITE_ONLY = 2
count_kernel_use(kernel)[source]
dict_ = {}
event_id_name_kind()[source]
get_buffer_kernel_direction()[source]
get_name()[source]
classmethod init_dict(key, self)

Add the current object to its class dictionnary (in __init__).

Parameters:
  • key -- Unique id of this object instance.
  • self -- Object instance put in the dict.
classmethod key_to_value(key)

Get object identified with key key.

Parameters:key -- key to lookup.
last_number = 0
list_ = []
class mcgdb.model.gpu.representation.Event(*args, **kws)[source]

Bases: object

entities = []
last_number = 0
lasts_ = []
list_ = []
class mcgdb.model.gpu.representation.Kernel(*args, **kws)[source]

Bases: object

RUNNING = 'RUNNING'
count_buffer_use(buffer)[source]
dict_ = {}
event_id_name_kind()[source]
classmethod init_dict(key, self)

Add the current object to its class dictionnary (in __init__).

Parameters:
  • key -- Unique id of this object instance.
  • self -- Object instance put in the dict.
classmethod key_to_value(key)

Get object identified with key key.

Parameters:key -- key to lookup.
last_number = 0
list_ = []
class mcgdb.model.gpu.representation.Program(*args, **kws)[source]

Bases: object

dict_ = {}
classmethod init_dict(key, self)

Add the current object to its class dictionnary (in __init__).

Parameters:
  • key -- Unique id of this object instance.
  • self -- Object instance put in the dict.
classmethod key_to_value(key)

Get object identified with key key.

Parameters:key -- key to lookup.
last_number = 0
list_ = []
class mcgdb.model.gpu.representation.Runtime[source]

Bases: object

event_id_name_kind()[source]
mcgdb.model.gpu.representation.enqueueKernel(kernel_p, ocl_event, callsite)[source]
mcgdb.model.gpu.representation.enqueue_transfer_buffer(buffer_val, blocking, ocl_event, is_read=True, callsite=None)[source]
mcgdb.model.gpu.representation.finishQueue()[source]
mcgdb.model.gpu.representation.handle_event(ocl_event)[source]

[event]>[event[+event]*]

mcgdb.model.gpu.representation.initialize()[source]
mcgdb.model.gpu.representation.releaseBuffer(buffer_p)[source]
mcgdb.model.gpu.representation.releaseKernel(kernel_p)[source]
mcgdb.model.gpu.representation.set_kernel_arg(kernel_p, index, size, value_p, value_pp, callsite)[source]

User module

class mcgdb.model.gpu.environment.user_helper.EventBreakpoint(location, txt, with_finish)[source]

Bases: mcgdb.capture.FunctionBreakpoint

func_type = <function type: Definition>
prepare_after(data)[source]
prepare_before()[source]
class mcgdb.model.gpu.environment.user_helper.cmd_UserEvent[source]

Bases: gdb.Command

invoke(args, from_tty)[source]
mcgdb.model.gpu.environment.user_helper.event_on_breakpoint(location, txt, with_finish=False)[source]
mcgdb.model.gpu.environment.user_helper.initialize()[source]
mcgdb.model.gpu.environment.user_helper.push_user_event(txt, after=False)[source]