Search Ctrl K
Home / Tools
THE FEUTEX TOOLKIT

SIMD Tail Lane Utilization

Count vector iterations and inactive lanes in a final masked vector.

Developer workspace● Runs in your browser
01 Your input
02 Your result
View or copy raw result data
FormulaVector iterations = Math.ceil(n/width); Inactive final lanes = Math.ceil(n/width)*width-n; Lane utilization = 100*n/(Math.ceil(n/width)*width)

Made for real tasks

  • Count vector iterations and inactive lanes in a final masked vector.
Explore step-by-step workflows →

Worked example

Inputs

Elements
1000 elements
Vector lane count
16 lanes

Expected results

Vector iterations
63 iterations
Inactive final lanes
8 lanes
Lane utilization
99.20634921 %

Load the example in the workspace to reproduce these results. Display rounding does not change the underlying calculation.

How to use this tool

  1. Enter elements, vector lane count in the displayed units.
  2. Calculate the scenario, then compare it with measurements before changing a system.

Try this example

{
  "n": 1000,
  "width": 16
}

Accuracy and scope

Uniform work and masked final vector; does not predict instruction throughput or branch divergence.

Is my data uploaded?

This tool runs locally in your browser. Input and output are not sent to a processing server. Copy or download your result before leaving the page.