Python module: cuvs.common
Decorator to automatically call sync on a cuVS Resources object when it isn’t passed to a function.
When a resources=None is passed to the wrapped function, this decorator will automatically create a default resources for the function, and call sync on that resources when the function exits.
This will also insert the appropriate docstring for the resources parameter
Resources is a lightweight python wrapper around the corresponding C++ class of resources exposed by RAFT’s C++ interface. Refer to the header file raft/core/resources.hpp for interface level details of this struct.
Parameters
Examples
Basic usage:
Using a cuPy stream with cuVS Resources:
Members
Return the pointer to the underlying c_obj as a size_t
Multi-GPU Resources is a lightweight python wrapper around the corresponding C++ class of multi-GPU resources exposed by RAFT’s C++ interface. This class provides a handle for multi-GPU operations across all available GPUs.
Parameters
Examples
Basic usage:
Using a cuPy stream with cuVS Multi-GPU Resources:
Using specific device IDs:
Members
Set a memory pool on all devices managed by these resources.
Parameters
Examples
Return the pointer to the underlying c_obj as a size_t
Decorator to automatically call sync on a cuVS Multi-GPU Resources object when it isn’t passed to a function.
When a resources=None is passed to the wrapped function, this decorator will automatically create a default multi-GPU resources for the function, and call sync on that resources when the function exits.
This will also insert the appropriate docstring for the resources parameter