Skip to content

libcvc-cuda recipe: libcvc's dependencies, kept in step by CI - #1208

Closed
transfix wants to merge 1 commit into
masterfrom
tfx/libcvc-cuda-recipe-deps
Closed

transfix wants to merge 1 commit into
masterfrom
tfx/libcvc-cuda-recipe-deps

Conversation

@transfix

Copy link
Copy Markdown
Owner

libcvc-cuda's recipe now declares libcvc's dependencies, and CI fails if the two lists drift apart again.

Why

libcvc-cuda's build.sh and build.ps1 run libcvc's scripts with CVC_ENABLE_CUDA=ON (#1153), and the publish workflow's CUDA jobs install libcvc's closure. So the GPU build links what the CPU build links. But libcvc-cuda's own depends: list is what cvcpkg pack bakes into the bundle's required_deps. It was a hand copy, and it had drifted again.

The configure log of dry run 43150296417 (Linux CUDA job) enables all of these, and the recipe declared none of them:

  • libcurl
  • yaml-cpp
  • json-schema-validator
  • FTXUI
  • tvision (ncursesw)
  • Jolt
  • Qhull
  • Opus
  • PocketFFT
  • CDT, Clipper2 and Shewchuk's predicates

cvcpkg install is flat, so cvcpkg install libcvc-cuda gives a libcvc.so linked to libraries the prefix doesn't have. That is how assimp broke it before.

What changes

cvcpkg/recipes/libcvc-cuda/recipe.yaml: depends: has libcvc's entries, with libcvc's platform scopes copied as they are. libcvc-cuda builds only linux and windows, so only those columns matter.

Added Removed
build tvision, clipper2, cdt, shewchuk-predicates
runtime pocketfft, libopus, yaml-cpp, nlohmann-json, json-schema-validator, ftxui, ncurses, joltphysics, qhull, curl, openmp (Windows), mingw-w64-runtime (Windows) fftw3 (libcvc replaced it with PocketFFT)

googletest is the one libcvc build dep left out. It only builds the test suite, and libcvc-cuda's scripts leave CVC_BUILD_TESTS off. Each entry's reasons stay in libcvc's recipe, not copied here.

.github/scripts/recipe-deps-parity.py: for each platform in libcvc-cuda's build matrix, it compares the (kind, name) dependencies both recipes declare there, and host_tools. An entry with no platforms: counts everywhere.

ci.yml: the recipe-version job ("recipes match CMakeLists version") runs the script as a new step, so no new required check is added. It uses the runner's PyYAML if there is one, else a venv with pyyaml. ci.yml stays CRLF.

Verification

  • Locally, with Python 3.12 and PyYAML 6.0.3:
    • On master's two recipes, the script fails with 15 differences on Linux and 16 on Windows: the missing deps above, plus the stale fftw3.
    • On this branch it passes: 46 dependencies on Linux and 47 on Windows, the same in both recipes.
  • ci.yml and the recipe parse with yaml.safe_load; the new step's script passes bash -n.
  • This PR's recipes match CMakeLists version check runs the new step.
  • Not verified: a publish. Bundles built with this recipe ship only on the next libcvc-cuda publish; the published 3.7.13 libcvc-cuda still has the old list.

libcvc-cuda's build.sh and build.ps1 run libcvc's scripts with CVC_ENABLE_CUDA=ON, and the
publish workflow's CUDA jobs install libcvc's closure, so the GPU build links what the CPU build
links. Its own depends: list, which `cvcpkg pack` bakes into the bundle's required_deps, was a hand
copy that had drifted again. The dry-run CUDA configure (run 43150296417) enables libcurl,
yaml-cpp, json-schema-validator, FTXUI, tvision (ncursesw), Jolt, Qhull, Opus and PocketFFT, and
the recipe declared none of them, so `cvcpkg install libcvc-cuda` gives a libcvc.so that links
libraries the flat prefix does not have. That is how assimp broke it before.

- depends: now has libcvc's entries, with libcvc's platform scopes:
  - build: tvision, clipper2, cdt and shewchuk-predicates join pegtl;
  - runtime: added pocketfft, libopus, yaml-cpp, nlohmann-json, json-schema-validator, ftxui,
    ncurses, joltphysics, qhull, curl, openmp and mingw-w64-runtime; fftw3 is gone, as it is
    from libcvc since PocketFFT replaced it.
  googletest is the one libcvc build dep left out: it only builds the test suite, and
  libcvc-cuda's scripts leave tests off.
- .github/scripts/recipe-deps-parity.py compares the (kind, name) dependencies both recipes
  declare on each platform in libcvc-cuda's build matrix (linux, windows), plus host_tools.
  ci.yml's recipe-version job runs it as a new step, so no required check is added. On master's
  recipes it fails with 15 differences on Linux and 16 on Windows; on these it passes with 46
  and 47 dependencies.
@transfix

Copy link
Copy Markdown
Owner Author

Landed in #1211 (squash 7714a53). #1211 was cut from this branch, so its squash carries this PR's commit 1ac35b5:

At 7714a53 the script passes: libcvc-cuda vs libcvc 46/46 on Linux and 47/47 on Windows, and the other four pairs match. The merge conflict GitHub reports here is master re-adding the same lines in that wider form, so resolving it would leave this PR empty. Closing.

@transfix transfix closed this Nov 13, 2026
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