[Engine] apply_nv_defaults labels sm_89 (Ada) as "sm_86 (Ampere)"

オープン 初心者向け
#6,229 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

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

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
73/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
cpp
領域
backend

調査の方向性

src/core/nv_defaults.cppを読み、特に起動ラベル関数とnv_default_env内の(8,9)分岐を確認してください。Compute Capability 8.9に対して、アーキテクチャラベルとパフォーマンス環境変数がどのように選択されるかを確認してください。Adaカードでstrata --serveをビルドして実行してください。該当する起動ラベルがsm_89 (Ada)を示し、Ada固有の回避策を使用すれば完了です。

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

説明

needs-format

"Area":

[Engine]

"Desktop app, Terminal or source?":

Source (START-HERE.bat, setup.sh or a build)

"What happened":

In src/core/nv_defaults.cpp, the startup label function checks:

const bool sm86 = mj == 8;

This is true for both sm_86 (Ampere: RTX 3060, A4000) and sm_89 (Ada: RTX 4070,
RTX 6000 Ada). If any switch is in the table for an Ada card, the startup line
prints "sm_86 (Ampere)" and names STRATA_SM86_PERF as the off switch, which is
wrong for Ada.

The table for (8,9) is empty today (no switches win on Ada, measured in my
benchmark issue), so the wrong label never prints at runtime. But the logic is
incorrect for the moment someone adds a switch, and it means there is no
STRATA_SM89_PERF escape hatch documented for Ada owners who want to verify
the empty table is correct on their card.

"Smallest steps or command":

  1. Add any switch to the (8,9) branch in nv_default_env
  2. Build and run strata --serve on a compute 8.9 card
  3. Observe the startup line says "sm_86 (Ampere)" instead of "sm_89 (Ada)"

"Reproduction status":

Unconfirmed static analysis (I read code; I did not see it fail)

"Strata version":

Strata 0.2.15 · engine 0.1.60 (also checked at HEAD 0.1.61)

"Graphics card, memory and system":

RTX 6000 Ada Generation 48 GB · 192 GB RAM · Windows 11

"Model, size and settings":

Qwen3.8-Flash-Next Unsloth UD-Q5_K_XL · 524288 context · vision on0

主要言語
C++
スター
11.6k
フォーク
1k
平均マージ
18日 13時間
マージ済み PR(30日)
4

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

Niko1221/Strata のほかの issue

Niko1221/Strata の issue をすべて見る

似ている issue

C++ の issue をもっと見る

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

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