引導式測驗 · 硬 等級

CUDA 與 GPU 程式設計測驗

檢查核心 CUDA 概念,包括核心、SIMT 執行、記憶體存取、共享記憶體和更高層級的 GPU 程式設計工具。

相關引導路徑Cuda 與 GPU 程式設計
問題 1 的 8

在 CUDA 術語中,什麼是「核心」?

預覽每個問題8 問題

當您參加測驗時,就會出現答案和解釋。

  1. 在 CUDA 術語中,什麼是「核心」?
    • 由多個 GPU 執行緒並行運行的函數
    • 作業系統的核心
    • 記憶體晶片的一種
    • GPU的冷卻系統
  2. SIMT執行模型是什麼意思?
    • 輸入慢,傳輸多
    • 單指令,多執行緒對不同資料運行相同指令
    • 單一影像,多個紋理
    • 順序指令、手動計時
  3. 為什麼 PyTorch 和 TensorFlow 很少要求使用者編寫原始 CUDA?
    • GPU 無法運行使用者程式碼
    • 直接使用CUDA是非法的
    • 他們在內部呼叫優化的 CUDA 函式庫,例如 cuDNN 和 cuBLAS
    • 它們僅在 CPU 上運行
  4. 什麼是「扭曲發散」?為什麼它會損害性能?
    • 導致封包遺失的網路錯誤
    • GPU 在高溫下發生物理彎曲
    • 刪除記憶體的錯誤
    • warp 中的執行緒採用不同的分支,且必須串列運行
  5. 為什麼「合併」記憶體存取在 CUDA 中很重要?
    • 相鄰線程讀取相鄰地址的效率要高得多
    • 它自動加密數據
    • 它釋放磁碟空間
    • 它禁用 GPU 風扇
  6. What is OpenAI Triton in relation to CUDA programming?
    • A CUDA driver that replaces NVIDIA GPUs
    • A Python-like language and compiler for writing efficient GPU kernels
    • A model-serving server that only loads TensorFlow checkpoints
    • A framework that converts GPUs into CPUs
  7. What does a CUDA kernel launch configuration specify?
    • A model tokenizer vocabulary
    • The number of training labels
    • The grid and block dimensions used to organize thread execution
    • The host operating system
  8. Why might a CUDA kernel use shared memory?
    • To make data available across every cluster without communication
    • To replace all registers
    • To store the model permanently on the GPU
    • To let threads in a block reuse data from a faster on-chip memory space