360 Secure SkillHub
360 安全技能中心

apple-silicon

提供 Metal 计算管线、MSL 语言、MPS/MPSGraph 与 MLX 的结构化参考文档及示例片段,通过任务到目录的映射引导检索,用于查证 Apple Silicon GPU 数值计算的用法与配置。

分类:知识
Fandhe-AI
热度 20.72
最近更新 2026-11-14 17:35:15

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add fandhe-ai/agent-reference-skills/apple-silicon
兼容性
通用兼容
联网要求
不联网
数据出网
数据不出本机
Metadata
name
apple-silicon
description
Apple Silicon GPU コンピュート/数値計算リファレンス。MSL (address space, atomic, SIMD-group, TensorOps, cooperative_tensor, matmul2d), threadgroup sizing, argument buffer, indirect command buffer, unified memory, GPU counters, MTLTensor, MPS / MPSGraph / MPSMatrix / MPSNDArray / MPSNNGraph, MLX (mx.array, lazy evaluation, grad / vmap, mx.compile, mx.fft, mlx.nn, distributed)。
user-invocable
false

apple-silicon

Apple Silicon 上の GPU コンピュートと数値計算スタック。Metal Shading Language (MSL) の言語仕様、 compute dispatch のエンコーディングと unified memory 最適化、MPS/MPSGraph による行列演算・ニューラルネットワーク推論、 Apple 研究チーム発の配列フレームワーク MLX をカバーする。

ディレクトリ構成

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
      tensors.md
      machine-learning-passes.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
      tensor-types.md
      tensor-operations.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
      mpsgraph-attention.md
      mpsf-color-conversion.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
      data-types.md
      operations.md
      fft.md
      export.md
      kv-cache.md
      precision.md
      environment-variables.md
      metal-backend.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

対象バージョン

  • MSL: Metal Shading Language Specification 4.1(2026-06-04 版、383 ページ)。
  • Metal / MPS / MPSGraph: developer.apple.com の DocC JSON(既存ページは 2026-10-16 取得。SDK 27.0 の追加 API を 2026-11-14 に追補、beta フラグなし)。
  • MLX: 0.32.4(ドキュメントはタグ pin、PyPI latest と一致)。

探索手順

タスクからカテゴリを引き、カテゴリの 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、および Core AI (iOS 27, NDArray / ComputeUnitKind) は apple-ml を参照。 Compute Graph (RealityKit) は apple-spatial、MetalFX denoising は apple-graphics を参照。 MLX のみ出典が developer.apple.com ではなく、Apple 研究チームが公開する OSS ドキュメント (ml-explore.github.io)である点に注意する。

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

タスク カテゴリ 参照 README
compute pass のエンコーディング・threadgroup/grid サイズ計算・compute pipeline 設定を知りたい metal-compute references/metal-compute/README.md
argument buffer・indirect command buffer・GPU counter・unified memory (storage mode)・forward progress / persistent kernel (27.0+) を調べたい metal-compute references/metal-compute/README.md
MSL のデータ型・address space・kernel 関数属性・引数バインディング属性を調べたい msl references/msl/README.md
MSL の atomic 関数・SIMD-group/quad-group 関数・数学関数・数値精度 (IEEE 754) 準拠を調べたい msl references/msl/README.md
MPSKernel/MPSImage/MPSMatrix/MPSNDArray による画像フィルタ・行列演算・分解を調べたい mps references/mps/README.md
MPSGraph/MPSNNGraph によるグラフ構築・実行 (MTL4CommandQueue 版 run を含む)・SDPA (scaledDotProductAttention)・CNN 推論・ray tracing・MPSFColorConversion を調べたい mps references/mps/README.md
Metal 4 の MTLTensor 作成 (auxiliary planes / multi-plane、27.0+)・ML pass (MTL4MachineLearningCommandEncoder) のエンコードを調べたい metal-compute references/metal-compute/README.md
MSL の tensor / cooperative_tensor / TensorOps (matmul2d, convolution, execution scope) を調べたい msl references/msl/README.md
MLX の array/dtype・lazy evaluation・indexing・保存/読み込みを調べたい mlx references/mlx/README.md
MLX の dtype 一覧・演算一覧・FFT (stft)・関数 export (.mlxfn) を調べたい mlx references/mlx/README.md
MLX の環境変数・数値精度 (TF32, Winograd)・KV cache・Metal capture を調べたい mlx references/mlx/README.md
MLX の grad/vmap 等の関数変換・mx.compile・unified memory model・distributed を調べたい mlx references/mlx/README.md
mlx.nn のレイヤー/損失関数・mlx.optimizers・tree utils を調べたい mlx references/mlx/README.md
典型的な使い方を知りたい(compute kernel dispatch, argument buffer, MPSGraph 学習ループ, MLX 学習ループ等) samples samples/README.md
Metal Toolchain セットアップ・.metal のコンパイル/リンク・デバッグ環境変数・MLX インストールを知りたい scripts scripts/README.md