Skip to main content

Mojo function

is_cpu

is_cpu[: Bool, : Origin[$0], //, target: StringSlice[$1]]() -> Bool

Checks if the target is a CPU (compile-time version).

Parameters:

Returns:

Bool: True if the target is a CPU, False otherwise.

is_cpu(target: StringSlice[origin]) -> Bool

Checks if the target is a CPU (runtime version).

Args:

Returns:

Bool: True if the target is a CPU, False otherwise.

Was this page helpful?