NVIDIA / NVIDIA/stdexec

[question] Life after split() (P3682)

Open
#1,574 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
2.4k
Forks
270
Avg merge
3d 6h
Merged PRs (30d)
39

Description

I can see how to make N-ary tree shaped task graphs using fork_join and when_all.

In the Bulirsch-Stoer integrator, when filling in Neville's table, the graph looks like

graph BT;
00-->10;
01-->10;
01-->11;
02-->11;
02-->12;
03-->12;
10-->20;
11-->20;
11-->21;
12-->21;
20-->30;
21-->30;

I got something working with a pattern of the form

auto job10 = stdexec::when_all(job00, job01) | stdexec::then(fn(10)) | stdexec::split();
auto job11 = stdexec::when_all(job01, job02) | stdexec::then(fn(11)) | stdexec::split();
auto job20 = stdexec::when_all(job10, job11) | stdexec::then(fn(20)) | stdexec::split();

With split() being removed from the standard, what would an equivalent be?

I suppose the underlying question is really: 'How do you create a general task graph?`

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue centers on the Bulirsch-Stoer integrator's Neville-table graph and the shown stdexec::when_all, stdexec::then, and split() composition; start by tracing those operators and the related fork_join/when_all pattern in the repository. Determine and document the supported post-split() way to express the general task graph.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.