conda: build and package the cuslide2 plugin in libcucim #1221
All Vouch review confidence checks passed
Residual risk 0.18 = Change Risk (0.45) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.45 · 420 lines diff across 5 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.362
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #1221"
general
weight: 0.35
msarahan
This PR is on top of #1219 (https://github.com/rapidsai/cucim/pull/1219), so that the tests
added there (
test_cuslide2_plugin.py, synthetic TIFF files written with tifffile) also run againstthe conda packages. Until #1219 is merged, this PR also shows its two commits. The change here is
the last commit,
conda: build and package the cuslide2 plugin in libcucim.Summary
closes #1212
The
libcucimconda package does not containcucim.kit.cuslide2@<version>.so. WithENABLE_CUSLIDE2=1, opening any TIFF fails:The recipe builds only the other two plugins (
for plugin_name in cuslide cumed). The pip wheelsship cuslide2, and the recipe already depends on
libnvimgcodec(which brings inlibnvjpeg,libnvjpeg2k0andlibnvtiff), but nothing in the package used it. I saw this with the26.10.00packages from the rapidsai channel and with the
26.12.00a34nightlylibcucim.Changes
conda/recipes/libcucim/recipe.yaml: buildcuslide2together withcuslideandcumed. Thestatic helper library of cuslide2 (
libnvimgcodec_dynlink.a, only needed to link the plugin) isremoved from the package.
README.md: the notice in the cuslide2 section said thatcuslideis deprecated from 26.04 andremoved in 26.08. It now says that
cuslideis still the default plugin, thatcuslide2isopt-in and is included in the pip wheels and in the conda packages, and that
cuslideis plannedto be deprecated. Please check the wording of the deprecation plan.
nvImageCodec is loaded at runtime with
dlopen. The plugin's RPATH is$ORIGIN, so it finds$PREFIX/lib/libnvimgcodec.so.0and$PREFIX/lib/extensions/from thelibnvimgcodecdependency.The pip-specific changes (extras, library lookup in
site-packages/nvidia/nvimgcodec) are in #1219and are not needed here.
Testing
I built the recipe locally with
rattler-build0.80.0 (--experimental, CUDA 13.0, Python 3.13,channels rapidsai and conda-forge, without sccache), following
ci/build_cpp.sh:cucim.kit.cuslide@,cucim.kit.cuslide2@andcucim.kit.cumed@26.12.00.soinlib/, each with RPATH$ORIGIN/, andno
libnvimgcodec_dynlink.a.mamba(this pulled inlibnvimgcodec0.9.0,libnvjpeg2k0,libnvtiffandlibnvjpeg), and ran the tests from #1219 with the plugindirectory of the Python package set to that environment's
liband noLD_LIBRARY_PATH: 4 passed(Deflate, LZW, JPEG and JPEG 2000 pyramids, on the CPU and the GPU).
mainbecause I did not build thecucimconda package. Only the plugins came from the conda package.CI builds and tests the packages, so it is the final check. In particular, the tests from #1219 now
run with the plugin in the conda test jobs.
Not in this PR
🤖 Generated with Claude Code