Make `no_cache=True` the default in `LinkerOptions`?

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

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
25/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
停滞
領域
compilers

調査の方向性

まず LinkerOptions のエントリポイントを特定し、nvJitLink のキャッシュが PTX の繰り返しコンパイルと info logs にどのような影響を与えるかを確認します。#920 と #176 のキャッシュ計画を比較し、期待されるデフォルト値と、結果として生じるコンパイル動作を検証するテストを定義します。

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

説明

cuda.core RFC

During the investigation of #920, I noticed that nvJitLink internally also has its own cache (likely sharing the driver cache). But it is confusing as a PTX developer when monitoring the info log: The first compilation I see this

self.get_info_log()='ptxas info    : 0 bytes gmem\nptxas info    : Function properties for add\nptxas         .     24 bytes stack frame, 16 bytes spill stores, 16 bytes spill loads\nptxas info    : Compile time = 2.002 ms\ninfo    : 16 bytes gmem\n\x00'

but second time onward it's only

self.get_info_log()='info    : 16 bytes gmem\n\x00'

Because the PTX is not re-compiled.

We already have a plan for caching (#176). I feel we should turn off nvJitLink's cache by default.

主要言語
Cython
スター
3.4k
フォーク
329
平均マージ
1日 21時間
マージ済み PR(30日)
113

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

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

はじめの一歩

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

NVIDIA/cuda-python のほかの issue

NVIDIA/cuda-python の issue をすべて見る

似ている issue

Compilers の issue をもっと見る

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

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