18. API Usage Notes#
Memory passed to
cuMemObjGetDescriptor()must remain valid untilcuMemObjPutDescriptor()is called.Descriptor strings returned by
cuMemObjGetRDMAToken()must be released withcuMemObjPutRDMAToken().For
cuObjGet()andcuObjPut(), the GET or PUT callback receives the RDMA descriptor through therdma_infoparameter.cuMemObjGetRDMAToken()is used when an application needs to acquire a descriptor string explicitly.The
osstream passed tosetupTelemetry()must remain valid until allcuObjClientobjects are destroyed. CallshutdownTelemetry()before closing that stream.Callback implementations must synchronize access to shared resources that can be used concurrently across multiple callers.