NyxExternalMemoryImporter#
- class gs_nyx.nyx_external_memory.NyxExternalMemoryImporter[source]#
Bases:
objectImports Nyx’s exported buffers into the compute API torch was built for, on the GPU Nyx renders on.
Build one with
create()from theDeviceIdentityandEExternalMemoryHandleTypeNyx reports, import every exported buffer withimport_buffer(), release the buffers thenclose()the importer before Nyx shuts down.Constructors
Initialize self.
Methods
Release the compute context.
Pick the compute API from the torch build and the compute device matching Nyx's
DeviceIdentity.Import a buffer exported by Nyx (an object with
handle,allocationSizeandsize).Wait for every compute write on the device, so Nyx can read the buffers.