Skip to main content

cudaGraphMemcpyNodeSetParamsToSymbol

Function cudaGraphMemcpyNodeSetParamsToSymbol 

Source
pub unsafe extern "C" fn cudaGraphMemcpyNodeSetParamsToSymbol(
    node: cudaGraphNode_t,
    symbol: *const c_void,
    src: *const c_void,
    count: size_t,
    offset: size_t,
    kind: cudaMemcpyKind,
) -> cudaError_t
Expand description

Sets a memcpy node’s parameters to copy to a symbol on the device.

Sets the parameters of memcpy node node to the copy described by the provided parameters.

When the graph is launched, the node will copy count bytes from the memory area pointed to by src to the memory area pointed to by offset bytes from the start of symbol symbol. The memory areas may not overlap. symbol is a variable that resides in global or constant memory space. kind can be either cudaMemcpyKind::cudaMemcpyHostToDevice, cudaMemcpyKind::cudaMemcpyDeviceToDevice, or cudaMemcpyKind::cudaMemcpyDefault. Passing cudaMemcpyKind::cudaMemcpyDefault is recommended, in which case the type of transfer is inferred from the pointer values. However, cudaMemcpyKind::cudaMemcpyDefault is only allowed on systems that support unified virtual addressing.

§Parameters

  • node: Node to set the parameters for.
  • symbol: Device symbol address.
  • src: Source memory address.
  • count: Size in bytes to copy.
  • offset: Offset from start of symbol in bytes.
  • kind: Type of transfer.