Skip to main content

function

simdwidthof

simdwidthof[type: AnyRegType, target: target = current_target()]() -> Int

Returns the vector size of the type on the host system.

Parameters:

  • type (AnyRegType): The type in question.
  • target (target): The target architecture.

Returns:

The vector size of the type on the host system.

simdwidthof[type: DType, target: target = current_target()]() -> Int

Returns the vector size of the type on the host system.

Parameters:

  • type (DType): The DType in question.
  • target (target): The target architecture.

Returns:

The vector size of the dtype on the host system.