See if we can do map_rect data transfers in stanc3 and get rid of call_id template parameter

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

メンテナーはふだん 1 日以内に返信

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

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
リファクタリング
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
cpp, ocaml
領域
compilers

調査の方向性

まず、stanc3 が map_rect をどのようにコンパイルし、生成された呼び出しが Math ライブラリで template パラメータ call_id をどのように使用しているかを追跡します。これを既存の GPU-function のデータ転送ロジックと比較します。完了とは、コンパイラが転送を管理し、キャッシュ動作が維持され、map_rect が call_id を必要としなくなることを意味します。

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

説明

cleanup cpp-codegen

Right now map_rect asks the compiler to emit a call_id integer as a template parameter to basically allow some caching to happen in the Math library. As we did with the GPU functions, this logic would better live in the compiler both for code sanity reasons but also because I believe the current caching scheme is subtly wrong.

主要言語
OCaml
スター
162
フォーク
60
平均マージ
2日 22時間
マージ済み PR(30日)
14

環境構築

  • Dockerfile・Docker Compose ファイルなし
  • プルリクエストのテンプレートあり
  • コントリビューションガイドなし

はじめの一歩

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

stan-dev/stanc3 のほかの issue

stan-dev/stanc3 の issue をすべて見る

似ている issue

Compilers の issue をもっと見る

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

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