gpt4 book ai didi

c++ - 关于CUDA的架构(SM、SP)

转载 作者:太空狗 更新时间:2023-10-29 20:26:33 34 4
gpt4 key购买 nike

我是一个刚刚接触CUDA编程的人。
好像有SP SM和CUDA架构的概念。
我曾尝试运行示例源的 deviceQuery.cpp 我认为有效的是他们环境的 SP SM 开发,
不知SP是不是SM中的任何item。

我认为项目“(14) 多处理器,(8) CUDA 核心/MP”对 SP 和 SM 是正确的,但我会正确理解以下内容吗?

SM = Multiprocessors = 14
SP = CUDA Cores/MP = 8
CUDA Cores = 14 * 8 = 112

对了,deviceQuery.cpp的结果如下。

CUDA Device Query (Runtime API) version (CUDART static linking)

Detected 1 CUDA Capable device(s)

Device 0: "GeForce GTS 240
CUDA Driver Version / Runtime Version 5.5 / 5.5
CUDA Capability Major/Minor version number: 1.1
Total amount of global memory: 1024 MBytes (1073741824 bytes)
(14) Multiprocessors, ( 8) CUDA Cores/MP: 112 CUDA Cores
GPU Clock rate: 1620 MHz (1.62 GHz)
Memory Clock rate: 1100 Mhz
Memory Bus Width: 256-bit
Maximum Texture Dimension Size (x,y,z) 1D=(8192), 2D=(65536, 32768), 3
D=(2048, 2048, 2048)
Maximum Layered 1D Texture Size, (num) layers 1D=(8192), 512 layers
Maximum Layered 2D Texture Size, (num) layers 2D=(8192, 8192), 512 layers
Total amount of constant memory: 65536 bytes
Total amount of shared memory per block: 16384 bytes
Total number of registers available per block: 8192
Warp size: 32
Maximum number of threads per multiprocessor: 768
Maximum number of threads per block: 512
Max dimension size of a thread block (x,y,z): (512, 512, 64)
Max dimension size of a grid size (x,y,z): (65535, 65535, 1)
Maximum memory pitch: 2147483647 bytes
Texture alignment: 256 bytes
Concurrent copy and kernel execution: Yes with 1 copy engine(s)
Run time limit on kernels: Yes
Integrated GPU sharing Host Memory: No
Support host page-locked memory mapping: Yes
Alignment requirement for Surfaces: Yes
Device has ECC support: Disabled
Device supports Unified Addressing (UVA): No
Device PCI Bus ID / PCI location ID: 9 / 0
Compute Mode:
< Default (multiple host threads can use ::cudaSetDevice() with device simultaneously) >

最佳答案

根据 this你是对的:

SM = 流式多处理器

SP = 流处理器 = CUDA 核心

总 SP/CUDA 内核数 = SM 数量 * 每个 SM 的 SP/CUDA 内核数

关于c++ - 关于CUDA的架构(SM、SP),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19423734/

34 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com