Skip to content

common : initialize the new fast top-k fields in common_sampler_init (fix arm64/macOS -Werror build) - #400

Merged
bri-prism merged 1 commit into
prismfrom
hotfix/sampling-init
Oct 25, 2026
Merged

bri-prism merged 1 commit into
prismfrom
hotfix/sampling-init

Conversation

@bri-prism

Copy link
Copy Markdown
Collaborator

The release run on prism 63f16c4 fails on ubuntu-cpu arm64 and macOS-cpu arm64:

common/sampling.cpp:597:5: error: missing field 'fast_topk_mask' initializer [-Werror,-Wmissing-field-initializers]

#389 added fast_topk_mask and logits_masked to common_sampler and listed them in the clone initializer, but not in common_sampler_init. This adds the three fields there, with the values they had implicitly (0 and empty).

g++ with -Wmissing-field-initializers -Werror reproduces the error on the current tip and passes with this change. There is no behaviour change.

…(fixes -Werror=missing-field-initializers after #389)
@bri-prism
bri-prism merged commit 909f0ca into prism Oct 25, 2026
7 checks passed
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