Skip to content

hrx: compile against the loomc C API that ships (builder create/release) - #434

Merged
bong-water-water-bong merged 1 commit into
1bit/hrx-vulkan-patchedfrom
corpus/hrx-loomc-api
Nov 20, 2026
Merged

bong-water-water-bong merged 1 commit into
1bit/hrx-vulkan-patchedfrom
corpus/hrx-loomc-api

Conversation

@bong-water-water-bong

Copy link
Copy Markdown

ggml/src/ggml-hrx/loom-jit.cpp did not compile against the installed loomc package, so in a package-configured tree no HRX test binary could be built at all:

loom-jit.cpp:223:72: error: 'loomc_link_index_builder_free' was not declared in this scope;
                             did you mean 'loomc_link_index_builder_create'?
loom-jit.cpp:223:101: error: template argument 2 is invalid
loom-jit.cpp:755:5: error: 'LoomLinkIndexBuilder' was not declared in this scope

The shipped API (include/loomc/link_index.h:302 and :312, and the exported symbols in libloomc.so) is:

loomc_status_t loomc_link_index_builder_create(context, options, allocator, out_builder);
void           loomc_link_index_builder_release(builder);

This renames the three call sites: the deleter in the LoomLinkIndexBuilder alias (_free → _release) and the two allocate calls (_allocate → _create).

The HRX_SOURCE_DIR branch builds loomc from source and is unaffected; only the installed-package path was broken.

Verification

loom-jit.cpp.o compiles; make test-hrx-ops then links and passes fa_decode_split 5/5 on gfx1201 (evidence in #433, which is stacked on this).

loom-jit.cpp called loomc_link_index_builder_allocate and used
loomc_link_index_builder_free as the deleter; the installed loomc exposes
loomc_link_index_builder_create and loomc_link_index_builder_release (see
loomc/link_index.h:302/312). The unit therefore did not compile at all against
the package, so no HRX test binary in a package-configured tree could be built:

  loom-jit.cpp:223: error: 'loomc_link_index_builder_free' was not declared in this scope

Same three call sites, renamed. loom-jit.cpp.o now builds.
@bong-water-water-bong
bong-water-water-bong merged commit f671c07 into 1bit/hrx-vulkan-patched Nov 20, 2026
@bong-water-water-bong
bong-water-water-bong deleted the corpus/hrx-loomc-api branch November 20, 2026 03:11
bong-water-water-bong added a commit that referenced this pull request Nov 20, 2026
… API the pinned hrx-system predates (engine#2916) (#446)

loom-jit.cpp was changed to loomc_link_index_builder_create/_release by 5635e24 (carried by #434),
written against an installed loomc from hrx-system 0b1422f63 -- which is an ANCESTOR of the tree the
engine pins (7f423692). So the rename moved the fork onto names the pin had already removed:

  loom-jit.cpp:223: 'loomc_link_index_builder_release' was not declared; did you mean '..._free'?
  loom-jit.cpp:756: 'loomc_link_index_builder_create' was not declared

Three call sites, back to the allocate/free pair every other handle in the file already uses. This reverts
the hunk only: #432's CMake targets and #436/#438 are untouched.

Co-authored-by: bong-water-water-bong <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant