`ConcurrentWrites` predicates not using grid-stride

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

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

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
55/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
julia
領域
performance

調査の方向性

Start by locating the ConcurrentWrites predicates and the large Metal tests mentioned in the issue; compare their launch behavior with algorithms that already use grid-stride processing. The issue gives an all(==(0), A) reproducer using a Metal array near the UInt32 element limit. Done when these predicates handle arrays beyond the grid-size limit on affected backends and the large-array case passes.

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

説明

This limits arrays to a max of 2^32-1 elements on backends that have a grid-size limit like ROCM and Metal. Found because the large Metal tests were failing locally (they use too much ram for the CI runners)

MWE on a metal main branch:

using Metal
const AK = Metal.GPUArrays.AK
n = Int(typemax(UInt32)) - 2
A = MtlArray{Int8}(undef, n)
Metal.unsafe_fill!(device(A), pointer(A), Int8(0), n; async=false)
all(==(0), A)   # also AK.all(==(0), A)

There are a few more algorithms that don't do grid-stride but some of these process multiple elements per work-item so the limit is pushed back even more.

主要言語
Julia
スター
204
フォーク
20
平均マージ
2日 19時間
マージ済み PR(30日)
41

環境構築

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

はじめの一歩

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

JuliaGPU/AcceleratedKernels.jl のほかの issue

JuliaGPU/AcceleratedKernels.jl の issue をすべて見る

似ている issue

Julia の issue をもっと見る

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

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