Skip to content

Make HALIDE_CPP_COMPILER_HAS_FLOAT16 overrideable and numeric#8987

Open
alexreinking wants to merge 1 commit intomainfrom
alexreinking/float16-override
Open

Make HALIDE_CPP_COMPILER_HAS_FLOAT16 overrideable and numeric#8987
alexreinking wants to merge 1 commit intomainfrom
alexreinking/float16-override

Conversation

@alexreinking
Copy link
Member

Define HALIDE_CPP_COMPILER_HAS_FLOAT16 as 0 or 1 so callers can override detection and use it in #if guards consistently. Exclude __wasm__ from the Clang _Float16 detection path to avoid enabling _Float16 on wasm targets that advertise fp16 features but do not support the source-language type.

Fixes #8986

Define HALIDE_CPP_COMPILER_HAS_FLOAT16 as 0 or 1 so callers can override detection and use it in #if guards consistently. Exclude __wasm__ from the Clang _Float16 detection path to avoid enabling _Float16 on wasm targets that advertise fp16 features but do not support the source-language type.

Fixes #8986
@alexreinking alexreinking requested a review from abadams March 6, 2026 02:40
@alexreinking alexreinking added the release_notes For changes that may warrant a note in README for official releases. label Mar 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release_notes For changes that may warrant a note in README for official releases.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Halide headers fail to compile for wasm32-wasip1 due to incorrect _Float16 detection

1 participant