microsoft / microsoft/DirectXShaderCompiler

Linear Algebra HLK Tests

Open
#7,841 0 comments 0 reactions 1 assignee View on GitHub

@JoeCitizen is already working on this.

Since Jul 20, 2026.

Dominant language
C++
Stars
3.7k
Forks
900
Avg merge
2d 11h
Merged PRs (30d)
44

Description

Execution tests for the new linear algebra apis are needed to verify correct support on all platforms.

The current smoke tests target the internal compiler API but now that its easier to target the header API directly that may be preferred.

The ExecTests must be written to cover each builtin across the various dimensions of its parameters taking care to assert specific edge cases.
Some examples of expectations:

  • Matrix params/returns should be tested with various types/dimensions/uses/scopes in both square and non-square shapes
  • integer type should explore full valid ranges
  • sources/destinations for serialized/deseralized matrix data should vary over size/layout/type/offset similar type things
  • out of bounds behavior should be explored
  • vector params should explore types/sizes as permitted per op

Some notion of runtime querying will be needed for most of the tests as the feature allows hardware to opt out of a lot of subfeatures.

CoopVec Exec Tests may be a good place to source inspiration or data sets from!

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.