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

[FEA] Add tests that verify vector loads are generated when expected

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

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

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

評価

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

調査の方向性

リポジトリのファイルや既存のテストは指定されていないため、まず CUDA のテストインフラストラクチャと nvcc で使用されるビルド出力を特定します。cuobjdump を使って SASS を検査し、たとえば LDG.E.128.SYS を確認します。また、ベクトルロードとベクトルストアの両方を検討します。完了の条件は、テストが PTX だけではなく、期待されるベクトル SASS 命令を確実に検証することです。

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

説明

P2: Nice to have topic: performance type: feature request

Generating vector load instructions is important for performance.

However, the compiler can be very fussy about actually generating them.

For example, https://godbolt.org/z/sfdaj695P shows prototyping code where all versions of nvcc prior to 11.7 would generate a ld.global.v4.u32 as expected, but in 11.7 it generates 4x ld.global.u32. What's worse is that it checks the condition after each load, so they won't be coalesced.

It would be nice to have a simple test that verifies vector loads (or stores) are generated in code where we expect them to be generated.

We should be sure to verify that vector SASS instructions are generated (and not just PTX) as I've seen cases where PTX will have vector loads but SASS does not.

This could be as simple as using cuobjdump -sass a.out | grep LDG.E.128.SYS, but there's probably more clever ways to do it.

主要言語
Cuda
スター
671
フォーク
122
平均マージ
4日 19時間
マージ済み PR(30日)
10

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

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

NVIDIA/cuCollections のほかの issue

NVIDIA/cuCollections の issue をすべて見る

似ている issue

Performance の issue をもっと見る

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

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