Skip to main content
Log in

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.