Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: IntelPython/dpnp
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: bfad54b
Choose a base ref
...
head repository: IntelPython/dpnp
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 327f21c
Choose a head ref
  • 2 commits
  • 9 files changed
  • 1 contributor

Commits on Nov 3, 2026

  1. Rewrite libtensor GEMM around stride-aware kernels

    Replace the eight GEMM kernel variants with three kernels that address
    operands through (row, col) strides, so C-/F-contiguous, transposed and
    2D-strided matrices share one code path with layout-aware coalesced loads:
    
    - GemvFunctor for n == 1 or m == 1 (gemv/gevm)
    - GemmSmallFunctor, one work-item per output, for small results
    - GemmTileFunctor, register-tiled with SLM staging
    
    Too-small launches split k into bounded chunks. Where the device supports
    atomics of the result type on the result's allocation (32- and 64-bit
    integer and real types), the chunks atomically add to the zeroed result;
    other types write partials to a temporary that one kernel reduces. On an
    Intel iGPU atomics save 50-150 us per split call over the temporary,
    2-8% geomean and up to 15% on ~0.5 ms products.
    
    x.T @ x / x @ x.T is detected in dot.cpp and only the upper triangle is
    computed. Exact dtypes no longer go through floating-point syrk in dpnp,
    which lost precision for large integers.
    
    Adds layout/batch/symmetric/split-k tests and a GEMM benchmark script. On
    an Intel iGPU the geomean speedup over the previous implementation is 3.4x
    across 590 cases.
    ndgrigorian committed Nov 3, 2026
    Configuration menu
    Copy the full SHA
    3f1c69b View commit details
    Browse the repository at this point in the history
  2. Speed up bool GEMM and avoid short k-splits

    - Hold bool tiles as 0/1 bytes and accumulate them as integers, clamping
      to 1 once per k-slab. Arithmetic on sycl::vec<bool> made bool ~30%
      slower than int8; it now matches it.
    - Only split k in the tile kernel into chunks of at least 256. Shorter
      chunks do not repay the extra kernel (and, for types without atomics,
      the temporary and its asynchronous free), and made e.g. 128x128
      int64/bool products slower than before the rewrite.
    - Apply clang-format.
    
    Adds a test for bool products whose true-count is a multiple of 256.
    ndgrigorian committed Nov 3, 2026
    Configuration menu
    Copy the full SHA
    327f21c View commit details
    Browse the repository at this point in the history
Loading