cuda.bindings._v2.driver.surf_ref_set_array#

cuda.bindings._v2.driver.surf_ref_set_array(
intptr_t h_surf_ref,
intptr_t h_array,
unsigned int flags,
)#

Sets the CUDA array for a surface reference.

[Deprecated]. Sets the CUDA array h_array to be read and written by the surface reference h_surf_ref. Any previous CUDA array state associated with the surface reference is superseded by this function. flags must be set to 0. The CUDA_ARRAY3D_SURFACE_LDST flag must have been set for the CUDA array. Any CUDA array previously bound to h_surf_ref is unbound.

Parameters:
  • h_surf_ref (intptr_t) – Surface reference handle.

  • h_array (intptr_t) – CUDA array handle.

  • flags (unsigned int) – set to 0.

See also

cuSurfRefSetArray