cuda.bindings._v2.driver.graph_exec_memset_node_set_params#

cuda.bindings._v2.driver.graph_exec_memset_node_set_params(
intptr_t h_graph_exec,
intptr_t h_node,
memset_params,
intptr_t ctx,
)#

Sets the parameters for a memset node in the given graphExec.

Updates the work represented by h_node in h_graph_exec as though h_node had contained memset_params at instantiation. h_node must remain in the graph which was used to instantiate h_graph_exec. Changed edges to and from h_node are ignored. Zero sized operations are not supported. The new destination pointer in memset_params must be to the same kind of allocation as the original destination pointer and have the same context association and device mapping as the original destination pointer. Both the value and pointer address may be updated. Changing other aspects of the memset (width, height, element size or pitch) may cause the update to be rejected. Specifically, for 2d memsets, all dimension changes are rejected. For 1d memsets, changes in height are explicitly rejected and other changes are opportunistically allowed if the resulting work maps onto the work resources already allocated for the node. The modifications only affect future launches of h_graph_exec. Already enqueued or running launches of h_graph_exec are not affected by this call. h_node is also not modified by this call.

Parameters:
  • h_graph_exec (intptr_t) – The executable graph in which to set the specified node.

  • h_node (intptr_t) – Memset node from the graph which was used to instantiate graphExec.

  • memset_params (intptr_t) – The updated parameters to set.

  • ctx (intptr_t) – Context on which to run the node.

See also

cuGraphExecMemsetNodeSetParams