Mojo function
compile
compile[func_type: AnyTrivialRegType, //, func: $0](device: Device) -> CompiledDeviceKernel[func]
Compiles a function which can be executed on device.
Args:
- device (
Device
): Device for which to compile the function. The returned CompiledDeviceKernel can execute on a different Device, as long as the device architecture matches.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!