nvmath.fft.DeviceCallable

class nvmath.fft.DeviceCallable(ltoir: int | bytes | None = None, size: int | None = None, data: int | None = None)[source]

A data class capturing LTO-IR callables.

ltoir

A device-callable function in LTO-IR format, which can be provided as as either as a bytes object or as a pointer to the LTO-IR as Python int.

Type:

int | bytes | None

size

The size of the LTO-IR callable. If not specified and a bytes object is passed for ltoir, the size is calculated from it. If a pointer is provided for the LTO-IR, size must be specified.

Type:

int | None

data

A device pointer to user data used in the callback. The default is None, which means a null pointer will be used in the callback.

Type:

int | None