Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do some basic validation of Target Features (#7986) #7987

Merged
merged 9 commits into from
Dec 8, 2023

Conversation

steven-johnson
Copy link
Contributor

No description provided.

src/Target.cpp Outdated
WasmSimd128,
WasmThreads,
};
user_assert(!features_any_of(bad_features_x86)) << "At least os_entry of the features for "
Copy link
Member

Choose a reason for hiding this comment

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

"os_entry"?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

oops fixed

@steven-johnson steven-johnson marked this pull request as ready for review December 6, 2023 20:06
src/Target.cpp Outdated
WasmSimd128,
WasmThreads,
};
user_assert(!features_any_of(bad_features_x86)) << "At least one of the features for "
Copy link
Member

Choose a reason for hiding this comment

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

A small code change would take the guesswork out of handling this error:

for  (Feature f : bad_features_x86) {
   user_assert(!has_feature(f)) << "Target feature " << f ...
}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@abadams
Copy link
Member

abadams commented Dec 8, 2023

Looks like a merge issue with the new wasm feature

@steven-johnson steven-johnson merged commit 357e646 into main Dec 8, 2023
7 of 9 checks passed
@steven-johnson steven-johnson deleted the srj/bad-targets branch December 8, 2023 19:17
ardier pushed a commit to ardier/Halide-mutation that referenced this pull request Mar 3, 2024
* Do some basic validation of Target Features (halide#7986)

* Update Target.cpp

* Update Target.cpp

* Fixes

* Update Target.cpp

* Improve error messaging.

* format

* Update Target.cpp
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