apple-silicon

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

apple-silicon

Apple Silicon

Apple Silicon 上の GPU コンピュートと数値計算スタック。Metal Shading Language (MSL) の言語仕様、 compute dispatch のエンコーディングと unified memory 最適化、MPS/MPSGraph による行列演算・ニューラルネットワーク推論、 Apple 研究チーム発の配列フレームワーク MLX をカバーする。
Apple Silicon平台上的GPU计算与数值计算技术栈。涵盖Metal Shading Language (MSL)语言规范、compute dispatch编码与unified memory优化、基于MPS/MPSGraph的矩阵运算与神经网络推理,以及Apple研究团队推出的数组框架MLX相关内容。

ディレクトリ構成

目录结构

text
skills/apple-silicon/
  SKILL.md
  references/
    metal-compute/
      README.md
      compute-pass-encoding.md
      threadgroup-sizing.md
      compute-pipeline-configuration.md
      indirect-command-buffers.md
      indirect-compute-commands.md
      gpu-counters.md
      counter-sample-buffers.md
      argument-buffers.md
      unified-memory.md
    msl/
      README.md
      data-types.md
      address-spaces.md
      function-qualifiers.md
      argument-attributes.md
      atomic-functions.md
      simdgroup-functions.md
      math-functions.md
      numerical-compliance.md
    mps/
      README.md
      mpskernel.md
      mpsimage.md
      image-filters.md
      mpsmatrix.md
      matrix-arithmetic.md
      matrix-decomposition-solve.md
      mpsndarray.md
      mpsnngraph.md
      cnn-kernels.md
      mpsgraph.md
      mpsgraph-tensor.md
      mpsgraph-executable.md
      mpsgraph-operations.md
      ray-tracing.md
    mlx/
      README.md
      array.md
      lazy-evaluation.md
      unified-memory-model.md
      function-transforms.md
      compilation.md
      nn-module.md
      optimizers.md
      nn-layers.md
      nn-losses-activations.md
      indexing.md
      saving-loading.md
      random.md
      linalg.md
      devices-streams.md
      memory-management.md
      fast-custom-kernels.md
      distributed.md
      tree-utils.md
  samples/
    README.md
    compute-kernel-dispatch.md
    nonuniform-threadgroup-dispatch.md
    shared-storage-mode-buffer.md
    resource-group-argument-buffer.md
    cpu-encoded-indirect-compute.md
    blit-and-compute-single-pass.md
    mpsgraph-matrix-multiplication.md
    mpsgraph-training-loop.md
    mps-image-filter.md
    mlx-array-lazy-evaluation.md
    mlx-unified-memory.md
    mlx-mlp-training-loop.md
    mlx-function-transforms.md
  scripts/
    README.md
    toolchain-setup.md
    metal-compile.md
    metal-symbols.md
    metal-binary-archives.md
    metal-dynamic-libraries.md
    metal-debug-env.md
    metal-performance-hud.md
    mlx-install.md
    mlx-distributed.md
text
skills/apple-silicon/
  SKILL.md
  references/
    metal-compute/
      README.md
      compute-pass-encoding.md
      threadgroup-sizing.md
      compute-pipeline-configuration.md
      indirect-command-buffers.md
      indirect-compute-commands.md
      gpu-counters.md
      counter-sample-buffers.md
      argument-buffers.md
      unified-memory.md
    msl/
      README.md
      data-types.md
      address-spaces.md
      function-qualifiers.md
      argument-attributes.md
      atomic-functions.md
      simdgroup-functions.md
      math-functions.md
      numerical-compliance.md
    mps/
      README.md
      mpskernel.md
      mpsimage.md
      image-filters.md
      mpsmatrix.md
      matrix-arithmetic.md
      matrix-decomposition-solve.md
      mpsndarray.md
      mpsnngraph.md
      cnn-kernels.md
      mpsgraph.md
      mpsgraph-tensor.md
      mpsgraph-executable.md
      mpsgraph-operations.md
      ray-tracing.md
    mlx/
      README.md
      array.md
      lazy-evaluation.md
      unified-memory-model.md
      function-transforms.md
      compilation.md
      nn-module.md
      optimizers.md
      nn-layers.md
      nn-losses-activations.md
      indexing.md
      saving-loading.md
      random.md
      linalg.md
      devices-streams.md
      memory-management.md
      fast-custom-kernels.md
      distributed.md
      tree-utils.md
  samples/
    README.md
    compute-kernel-dispatch.md
    nonuniform-threadgroup-dispatch.md
    shared-storage-mode-buffer.md
    resource-group-argument-buffer.md
    cpu-encoded-indirect-compute.md
    blit-and-compute-single-pass.md
    mpsgraph-matrix-multiplication.md
    mpsgraph-training-loop.md
    mps-image-filter.md
    mlx-array-lazy-evaluation.md
    mlx-unified-memory.md
    mlx-mlp-training-loop.md
    mlx-function-transforms.md
  scripts/
    README.md
    toolchain-setup.md
    metal-compile.md
    metal-symbols.md
    metal-binary-archives.md
    metal-dynamic-libraries.md
    metal-debug-env.md
    metal-performance-hud.md
    mlx-install.md
    mlx-distributed.md

探索手順

探索步骤

タスクからカテゴリを引き、カテゴリの README.md で目的のページを特定する:
  1. 下記マッピング表でタスクに対応するカテゴリを探す
  2. そのカテゴリの
    references/{category}/README.md
    samples/
    scripts/
    は直下の README.md)を参照して目的のページを特定する
  3. 該当ページの
    .md
    を Read して詳細を確認する
Metal のレンダリングパイプライン(
MTLRenderCommandEncoder
/
MTLRenderPipelineState
)・Core Animation・ Core Graphics・Core Image・SpriteKit・SceneKit は
apple-graphics
を参照。本スキルは Metal のコンピュート
MTLComputeCommandEncoder
以下)・MSL 言語仕様・MPS/MPSGraph・MLX を担当する。 Core ML / Create ML による
.mlmodel
のオンデバイス推論・Vision・Natural Language・Speech は
apple-ml
を参照。 MLX のみ出典が developer.apple.com ではなく、Apple 研究チームが公開する OSS ドキュメント (ml-explore.github.io)である点に注意する。
根据任务找到对应分类,通过分类下的README.md定位目标页面:
  1. 在下方映射表中查找任务对应的分类
  2. 查看该分类下的
    references/{category}/README.md
    samples/
    scripts/
    目录直接查看根目录下的README.md)以定位目标页面
  3. 阅读对应页面的.md文件了解详细内容
Metal的渲染管线(
MTLRenderCommandEncoder
/
MTLRenderPipelineState
)、Core Animation、Core Graphics、Core Image、SpriteKit、SceneKit相关内容请参考
apple-graphics
。本技术栈负责Metal的计算
MTLComputeCommandEncoder
及相关组件)、MSL语言规范、MPS/MPSGraph、MLX相关内容。 基于Core ML/Create ML的
.mlmodel
设备端推理、Vision、Natural Language、Speech相关内容请参考
apple-ml
。 请注意,仅MLX的文档来源不是developer.apple.com,而是Apple研究团队发布的开源文档(ml-explore.github.io)。

タスク → カテゴリ マッピング

任务→分类映射表

タスクカテゴリ参照 README
compute pass のエンコーディング・threadgroup/grid サイズ計算・compute pipeline 設定を知りたいmetal-computereferences/metal-compute/README.md
argument buffer・indirect command buffer・GPU counter・unified memory (storage mode) を調べたいmetal-computereferences/metal-compute/README.md
MSL のデータ型・address space・kernel 関数属性・引数バインディング属性を調べたいmslreferences/msl/README.md
MSL の atomic 関数・SIMD-group/quad-group 関数・数学関数・数値精度 (IEEE 754) 準拠を調べたいmslreferences/msl/README.md
MPSKernel/MPSImage/MPSMatrix/MPSNDArray による画像フィルタ・行列演算・分解を調べたいmpsreferences/mps/README.md
MPSGraph/MPSNNGraph によるグラフ構築・実行・CNN 推論・ray tracing を調べたいmpsreferences/mps/README.md
MLX の array/dtype・lazy evaluation・indexing・保存/読み込みを調べたいmlxreferences/mlx/README.md
MLX の grad/vmap 等の関数変換・mx.compile・unified memory model・distributed を調べたいmlxreferences/mlx/README.md
mlx.nn のレイヤー/損失関数・mlx.optimizers・tree utils を調べたいmlxreferences/mlx/README.md
典型的な使い方を知りたい(compute kernel dispatch, argument buffer, MPSGraph 学習ループ, MLX 学習ループ等)samplessamples/README.md
Metal Toolchain セットアップ・
.metal
のコンパイル/リンク・デバッグ環境変数・MLX インストールを知りたい
scriptsscripts/README.md
任务分类参考README
了解compute pass编码、threadgroup/grid尺寸计算、compute pipeline配置metal-computereferences/metal-compute/README.md
查阅argument buffer、indirect command buffer、GPU counter、unified memory(存储模式)相关内容metal-computereferences/metal-compute/README.md
查阅MSL的数据类型、address space、kernel函数属性、参数绑定属性mslreferences/msl/README.md
查阅MSL的atomic函数、SIMD-group/quad-group函数、数学函数、数值精度(IEEE 754)合规性mslreferences/msl/README.md
查阅基于MPSKernel/MPSImage/MPSMatrix/MPSNDArray的图像滤镜、矩阵运算、矩阵分解mpsreferences/mps/README.md
查阅基于MPSGraph/MPSNNGraph的图构建、执行、CNN推理、ray tracing相关内容mpsreferences/mps/README.md
查阅MLX的array/dtype、lazy evaluation、indexing、保存/加载相关内容mlxreferences/mlx/README.md
查阅MLX的grad/vmap等函数转换、mx.compile、unified memory model、distributed相关内容mlxreferences/mlx/README.md
查阅mlx.nn的层/损失函数、mlx.optimizers、tree utils相关内容mlxreferences/mlx/README.md
了解典型用法(compute kernel dispatch、argument buffer、MPSGraph训练循环、MLX训练循环等)samplessamples/README.md
了解Metal Toolchain设置、
.metal
文件编译/链接、调试环境变量、MLX安装相关内容
scriptsscripts/README.md