Skip to content

compile_dxil: index the graphics interface catalog on several threads (--jobs) #3534

Done

Description

@lukaslw-lab

compile_dxil --index-graphics-interfaces reads, parses, hashes and publishes the .cdxil containers one after another (src/direct_compute_cache.cpp:300). For a full local corpus (23,619 vertex, pixel and mesh containers from tools/extract_shaders.py), one install takes 252 s into an empty cache and 140 s into the same cache again. With #3521 the launcher runs it before every run.

Proposal: --index-graphics-interfaces DIR CACHE [--jobs N] (1–64, default 1), like --refusals:

  • Workers read, parse and publish the containers. Their keys are merged afterwards in sorted file order, so the catalog is byte-identical for any N. The ambiguous-key rule does not depend on order.
  • The first failure in file order still fails the install, and no new index is written.
  • Test: on the existing synthetic library, the one-thread and --jobs 3 catalogs are byte-equal, ambiguous key included. --jobs 0 is refused, and a broken container still fails with --jobs.

Not covered: skipping the install when the catalog is already current (launcher side, raised on #3521).

Refs #3521, #2935

Activity

  1. lukaslw-lab commented on Nov 30, 2026

    @lukaslw-lab
    ContributorAuthor

    I'm taking this. The PR follows with 1/4/8-job timings on the same corpus.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions