Skip to content

Discover Conda native libraries in the host SDK - #26

Open
krystophny wants to merge 1 commit into
hiddenSymmetries:masterfrom
itpplasma:fix/upstream-conda-host-sdk-20261024
Open

krystophny wants to merge 1 commit into
hiddenSymmetries:masterfrom
itpplasma:fix/upstream-conda-host-sdk-20261024

Conversation

@krystophny

Copy link
Copy Markdown

A Conda build with separate build-tool and host prefixes fails to discover NetCDF because the recipe places native target libraries in the build environment and CMake searches BUILD_PREFIX. Conda target headers and libraries belong to the host SDK selected by PREFIX.

Move the existing five native-library requirements to the host section and use PREFIX for the existing CMake include/link directories. This preserves the solver, dependency list, MPI configuration, package tests and numerical references. Conda documents the host/build distinction and PREFIX variables.

The same focused SDK correction in our VMEC2000 fork passed the actual Conda package build, verifier and installation in GitHub run 40033178435. Slurm 3362148 independently configured with CONDA_BUILD=1, a real host NetCDF SDK and a distinct empty BUILD_PREFIX, verified NetCDF discovery from the host prefix, and passed both native LWOUTTXT output cases plus the same two in one resident generation. That consumer also contains our separate LWOUTTXT regression fix. This standalone port is based on current upstream 70c637a and leaves its MPI changes intact.

Chris&AI

@mbkumar mbkumar left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the changes. They look sensible.

@krystophny
krystophny marked this pull request as ready for review November 23, 2026 05:30

This branch has not been deployed

No deployments
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.

2 participants