我如何知道 GTS 250 上有多少個串流多處理器 (SM)?
答案1
您可以下載 SDK 並運行 deviceQuery
CUDASDK_32/C/bin/linux/release/deviceQuery
Device 0: "Tesla S2050"
CUDA Driver Version: 3.10
CUDA Runtime Version: 3.10
CUDA Capability Major/Minor version number: 2.0
Total amount of global memory: 2817982464 bytes
並看到這一行:
Multiprocessors x Cores/MP = Cores: 14 (MP) x 32 (Cores/MP) = 448 (Cores)
Total amount of constant memory: 65536 bytes
Total amount of shared memory per block: 49152 bytes
Total number of registers available per block: 32768
Warp size: 32
Maximum number of threads per block: 1024
Maximum sizes of each dimension of a block: 1024 x 1024 x 64
Maximum sizes of each dimension of a grid: 65535 x 65535 x 1
Maximum memory pitch: 2147483647 bytes
Texture alignment: 512 bytes
Clock rate: 1.15 GHz
Concurrent copy and execution: Yes
Run time limit on kernels: No
Integrated: No
Support host page-locked memory mapping: Yes
Compute mode: Default (multiple host threads can use this device simultaneously)
Concurrent kernel execution: Yes
Device has ECC support enabled: Yes
deviceQuery, CUDA Driver = CUDART, CUDA Driver Version = 3.10, CUDA Runtime Version = 3.10, NumDevs = 1, Device = Tesla S2050
答案2
GTS 250 有 16 個 SM,每個 SM 有 8 個內核,總共 128 個 CUDA 內核。 這個維基百科頁面擁有所有 GeForce 設備的核心數量。對於 GT200 系列處理器,將核心數除以 8 即可得出 SM 數量。
答案3
這是一篇 12 年前的帖子,然而,最近我在尋找sm_
我的 GPU 時也遇到了類似的困惑。
為了將來參考,我發現如果你運行__nvcc_device_query.exe
(對於Windows),對於Linux來說,在CUDA安裝目錄下也應該有類似的情況,並且在bin
資料夾中,你會得到數字。