cuda::experimental::stf::ctx_resource_set#
-
class ctx_resource_set#
Public Functions
-
ctx_resource_set() = default#
-
ctx_resource_set(const ctx_resource_set&) = delete#
-
ctx_resource_set &operator=(const ctx_resource_set&) = delete#
-
ctx_resource_set(ctx_resource_set&&) = default#
-
ctx_resource_set &operator=(ctx_resource_set&&) = default#
Store a resource until it is released.
-
inline void release(cudaStream_t stream)#
Release all resources asynchronously.
-
inline ctx_resource_set export_resources()#
Export all resources by moving them to a new ctx_resource_set The current set will be left empty after this operation.
-
inline void import_resources(ctx_resource_set &&other)#
Import all resources from another ctx_resource_set The other set will be left empty after this operation.
-
ctx_resource_set() = default#