Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

How to achieve execution agent local variable?

オープン
#1,259 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
cpp

調査の方向性

まず、P2300 の execution-agent model と、stdexec が scheduler または execution context をどのように表現するかを確認します。提案されている concurrency-count および current-execution-id クエリを、per-thread random-generator のユースケースと比較します。完了とするには、maintainer による判断またはサポート対象の設計を文書化することが必要です。これは依然として未回答の設計上の問題です。

索引モデルが issue の本文から書いたものです。

説明

Sometimes we need some variables to be execution agent local. Taking a use-case of parallel random number generation. If I want random number generator to be non-blocking for multiple threads, then each thread should have a separate copy of random generator.

For example, in case of a thread pool scheduler a thread_local random generator can be used. But that's not a generic solution.

I don't know how to handle the same with P2300. Is there some way to handle this kind of use-case?

I feel the use-case can be solved if I have 2 queries:

  • Maximum number of tasks that can be executed concurrently at any moment of time. (can be unbounded too)
  • Let's say the above query returns n. Then a query like current_execution_id that returns [0, n) representing on which execution agent task is currently at.
主要言語
C++
スター
2.4k
フォーク
270
平均マージ
2日 16時間
マージ済み PR(30日)
43

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

NVIDIA/stdexec のほかの issue

NVIDIA/stdexec の issue をすべて見る

似ている issue

C++ の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。