plan for OpenMP?

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

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

評価

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

調査の方向性

まず、カスタムプランとワーカー数へのアクセスに関する future API を読み、その後、OMP_NUM_THREADS が futures や ranger、xgboost などの外部 learner とどのように相互作用するかを調査します。OpenMP 設定または learner のワーカー数を API 経由で公開できるかどうかについて明確な判断に到達し、選択したアプローチが文書化または仕様化されていれば完了です。

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

説明

In mlr3, we are looping over the folds of a cross validation with future.apply. In each iteration, we are calling a function from an external library to fit a model. Many of the external libraries come with support for OpenMP, e.g. ranger or xgboost.

I was wondering if we could exploit the future API to set the number of OpenMP threads, e.g. via environment variable OMP_NUM_THREADS.

As an alternative, it would probably be sufficient for us if we could create a custom plan to store the number of workers to be used by the learners. We could then query the number of workers again and map it to the respective argument of the learner function. Is this already possible?

主要言語
R
スター
1k
フォーク
93
平均マージ
2日 4時間
マージ済み PR(30日)
1

環境構築

はじめの一歩

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

futureverse/future のほかの issue

futureverse/future の issue をすべて見る

似ている issue

R の issue をもっと見る

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

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