Skip to content

Fix include style in exec/sequence.hpp#1589

Merged
ericniebler merged 1 commit intoNVIDIA:mainfrom
dkolsen-pgi:sequence-include
Jul 26, 2025
Merged

Fix include style in exec/sequence.hpp#1589
ericniebler merged 1 commit intoNVIDIA:mainfrom
dkolsen-pgi:sequence-include

Conversation

@dkolsen-pgi
Copy link
Copy Markdown
Contributor

The header exec/sequence.hpp has always used the < > style for includes, e.g. #include <stdexec/execution.hpp>. This doesn't work with NVC++. But that hasn't been a problem in practice because none of the examples or tests seem to have included exec/sequence.hpp. But a few days ago exec/repeat_n.hpp and exec/repeat_effect_until.hpp were both changed to have #include "sequence.hpp". That broke many of the NVC++ tests for stdexec with

".../sequence.hpp", line 18: catastrophic error: cannot open source file "stdexec/execution.hpp"
  #include <stdexec/execution.hpp>
                                  ^

Fix the failures by changing exec/sequence.hpp to use relative includes in quotes rather than < >. This fixes the NVC++ tests.

The header `exec/sequence.hpp` has always used the `< >` style for includes,
e.g. `#include <stdexec/execution.hpp>`.  This doesn't work with NVC++.
But that hasn't been a problem in practice because none of the examples
or tests seem to have included `exec/sequence.hpp`.  But a few days ago
`exec/repeat_n.hpp` and `exec/repeat_effect_until.hpp` were both changed
to have `#include "sequence.hpp"`.  That broke many of the NVC++ tests
for stdexec with
```
".../sequence.hpp", line 18: catastrophic error: cannot open source file "stdexec/execution.hpp"
  #include <stdexec/execution.hpp>
                                  ^
```

Fix the failures by changing `exec/sequence.hpp` to use relative
includes in quotes rather than `< >`.  This fixes the NVC++ tests.
@copy-pr-bot
Copy link
Copy Markdown

copy-pr-bot Bot commented Jul 25, 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.

@ericniebler
Copy link
Copy Markdown
Collaborator

/ok to test df819ce

@ericniebler ericniebler merged commit 72a548e into NVIDIA:main Jul 26, 2025
18 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.

2 participants