技術專題

GPU 運算資源排程

GPU Compute Orchestration

回放單工作站的真實 CUDA 與 CPU 任務,並用合成佇列比較 FIFO 與回填。

成果歸屬
自主研發
專案成熟度
互動技術展示
公開證據分類
實測基準 · 互動原型
討論類似專案 回放單工作站 CUDA 任務 技術圖解
單工作站受控實跑的程序 VRAM 取樣與保留量時間軸
單工作站受控實跑的 VRAM 回放。 來源

產業問題與工程挑戰

共享運算環境若同時有多個工作,必須兼顧資源需求、等待順序與資源利用。

工程限制

一個排在前方的大工作可能阻擋後方能先執行的小工作。提高利用率的同時,還要理解不同工作的等待代價。

技術方法與架構

任務從排隊、准入到釋放資源
  1. 宣告 CPU 與 VRAM 需求

    為各合成工作定義所需 CPU、VRAM 和執行步數。

  2. 依策略及可用容量准入

    依單機資源上限與選擇的 FIFO 或回填策略判斷是否可開始工作。

  3. 釋放資源並更新時間軸

    沿離散時間步釋放資源,更新工作狀態、時間軸和資源尖峰。

圖解說明 FIFO 與回填的合成比較。另一份實跑紀錄呈現單工作站的 CUDA/CPU 排程時間與 VRAM 取樣。

實作與交付

以隔離的實際排程器啟動兩個受控 CUDA 工作與一個 CPU 工作,保存相對時間、任務狀態和隔離佇列的 VRAM 取樣。另以固定的合成工作比較 FIFO 與回填。

成果

在測試的單 GPU 執行槽設定下,兩件 CUDA 工作依序執行,CPU 工作與第一件 CUDA 工作並行。兩件 CUDA 工作的程序級取樣峰值均為 286 MiB。

  • 可重現的單機排程試驗
  • 工作佇列、狀態與排程時間軸
  • 供選型討論的資源配置方式

驗證與證據

核對實跑開始與結束時間、退出碼和 VRAM 取樣。FIFO 與回填比較沿用合成工作與模擬刻度。

單工作站受控實跑,包含兩項 CUDA 與一項 CPU 任務。

公開範圍及專案狀態

歸屬與階段
自主研發 · 互動技術展示

自主研發的單工作站受控實跑使用自行製作的輸入。示範可驗證准入與並行,正式負載吞吐、多 GPU 或多使用者治理需要另行驗證。

Technical Note

GPU Compute Orchestration

Independent Research and Development · Interactive Demonstration

Replay measured CUDA and CPU jobs on one workstation, and compare FIFO and backfill using a synthetic workload.

Open full English page 繁體中文 Plan a project Replay the measured single-workstation run Technical diagram

Industry problem and engineering challenge

A shared compute environment must balance resource demands, queue order and resource usage when several jobs arrive together.

Engineering constraints

A large job at the head of the queue can block smaller jobs that fit the currently available resources. A policy should make the waiting trade-offs visible.

Technical approach and architecture

How jobs wait, receive resources and release them
  1. Declare CPU and VRAM requirements

    Set CPU, VRAM and run length for each synthetic job.

  2. Admit jobs by policy and available capacity

    Admit jobs under a single-machine resource limit using the selected FIFO or backfill policy.

  3. Release resources and update the timeline

    Release resources in discrete steps and update job status, the timeline and peak consumption.

The diagram explains the synthetic FIFO and backfill comparison. A separate single-workstation run provides real CUDA/CPU timestamps and VRAM samples.

Implementation and deliverables

An isolated run of the real scheduler launched two controlled CUDA jobs and one CPU-only job, recording relative timestamps, job state and test-queue VRAM samples. A separate synthetic workload compares FIFO and backfill.

Outcome

Under a one-GPU-job limit, the two CUDA jobs ran in sequence while the CPU job overlapped the first. Sampled per-process VRAM peaked at 286 MiB for each CUDA job.

  • Reproducible single-machine scheduling experiment
  • Queue, job status and timeline
  • Resource configuration for engineering discussion

Validation and evidence

Verify recorded start and end times, exit codes and VRAM samples. FIFO and backfill comparisons use synthetic jobs and simulation ticks.

Controlled single-workstation run with two CUDA jobs and one CPU job.

Project status and disclosure

Ownership and status
Independent Research and Development · Interactive Demonstration

Independent single-workstation test with generated inputs. The run validates admission and overlap under the stated settings. Production throughput, multi-GPU scheduling and multi-user governance require separate validation.