Skip to content

More robust feature-checking.#1528

Closed
jehelset wants to merge 1 commit intoNVIDIA:mainfrom
jehelset:jeh/lib-execution-feature-check
Closed

More robust feature-checking.#1528
jehelset wants to merge 1 commit intoNVIDIA:mainfrom
jehelset:jeh/lib-execution-feature-check

Conversation

@jehelset
Copy link
Copy Markdown
Contributor

@jehelset jehelset commented May 4, 2025

Suggestion for closing #1523.

@copy-pr-bot
Copy link
Copy Markdown

copy-pr-bot Bot commented May 4, 2025

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@prlw1
Copy link
Copy Markdown

prlw1 commented May 6, 2025

Your patch seems to do the logical opposite of what I think you intend: if the feature exists, you don't use it.

@jehelset
Copy link
Copy Markdown
Contributor Author

jehelset commented May 6, 2025

Your patch seems to do the logical opposite of what I think you intend: if the feature exists, you don't use it.

i don't think 0242ad9 was aimed at adding support for this on libstdc++-based builds, so here, as a quick fix i just wanted to make sure these still are able to build (not add support for this, since then i'd have to fix the underlying build failure, and i didn't have time for that).

@ericniebler
Copy link
Copy Markdown
Collaborator

this seems wrong to me. @lucteo thoughts?

@jehelset jehelset force-pushed the jeh/lib-execution-feature-check branch from 175a923 to 3cac235 Compare June 9, 2025 17:52
@mathisloge
Copy link
Copy Markdown
Contributor

It would be great if we find some solution to this, as the main branch currently does not compile on gcc-15.

@lucteo
Copy link
Copy Markdown
Contributor

lucteo commented Jun 15, 2025

Sorry, I've missed this. These days are a bit busy for me, but I'll look as soon as I have some time.

#if STDEXEC_HAS_FEATURE(__cpp_lib_execution)
#if defined(__cpp_lib_execution)
# define STDEXEC_HAS_EXECUTION_POLICY() 0
#elif STDEXEC_HAS_FEATURE(__cpp_lib_execution)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Sorry, I've seen the issue before the fix :(
I did post a possible fix in #1559.

Besides the problem reported in the issue, we also need to check the version of the feature flag, as the execution policies were added in 2 steps.

@jehelset jehelset closed this Jul 7, 2025
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.

5 participants