流式多处理器数

sma*_*ato 5 gpu cuda

我怎么知道我的 GTS 250 上有多少个流式多处理器 (SM)?

小智 5

您可以下载 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
Run Code Online (Sandbox Code Playgroud)

并看到这一行:

 Multiprocessors x Cores/MP = Cores:  14 (MP) x 32 (Cores/MP) = 448 (Cores)
Run Code Online (Sandbox Code Playgroud)
 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
Run Code Online (Sandbox Code Playgroud)


小智 1

GTS 250 有 16 个 SM,每个 SM 有 8 个内核,总共 128 个 CUDA 内核。 此维基百科页面包含所有 GeForce 设备的核心数量。对于 GT200 系列处理器,将核心数量除以 8 即可得出 SM 数量。