mscclpp.gpu

Functions

capture_graph(stream, capture_fn)

create_stream([non_blocking])

Create a stream on the current device; the caller must destroy it.

current_device()

device_name([device_id])

get_device_properties(device_id)

Return a single-element tuple containing the native device properties.

init_runtime()

memcpy_async(dst, src, nbytes, direction[, ...])

Enqueue a HostToDevice or DeviceToHost copy; retain both buffers until the stream completes.

pointer_get_attributes(ptr)

Return a single-element tuple containing the native pointer attributes.

runtime_name()

version()

Classes

Graph(graph_exec)

mscclpp.gpu.create_stream(non_blocking=False)

Create a stream on the current device; the caller must destroy it.

Return type:

Any

Parameters:

non_blocking (bool)

mscclpp.gpu.get_device_properties(device_id)

Return a single-element tuple containing the native device properties.

Return type:

tuple[Any, ...]

Parameters:

device_id (int)

mscclpp.gpu.memcpy_async(dst, src, nbytes, direction, stream=0)

Enqueue a HostToDevice or DeviceToHost copy; retain both buffers until the stream completes.

Return type:

tuple[Any, ...]

Parameters:
mscclpp.gpu.pointer_get_attributes(ptr)

Return a single-element tuple containing the native pointer attributes.

Return type:

tuple[Any, ...]

Parameters:

ptr (int)