create#

classmethod NyxExternalMemoryImporter.create(device_identity, handle_type)[source]#

Pick the compute API from the torch build and the compute device matching Nyx’s DeviceIdentity.

Pairing compares the LUID and node mask or the PCI bus location, whichever Nyx reports. Without a match the import cannot map the memory, so creation fails.

Return type:

NyxExternalMemoryImporter