In this chapter, we analyze the anatomy of one of the main components in a GPU: the streaming multiprocessor (SM). This will clarify how threads get scheduled during the processing phase, the importance of memory caches, and how they relate to global memory accesses. We will talk about shared memory, which is among the most important type of memory that the programmer can manage explicitly, to optimize the latency problems that can arise in some situations by accessing global device memory, for example. A practical code sample is provided in which employees shared memory to optimize Gaussian blur.

错误:搜索内容不能为空,请输入英文关键词
错误:关键词超出字数限制,请精简
高级检索

Know Your Hardware: The Streaming Multiprocessor

  • Fabio Suriano

摘要

In this chapter, we analyze the anatomy of one of the main components in a GPU: the streaming multiprocessor (SM). This will clarify how threads get scheduled during the processing phase, the importance of memory caches, and how they relate to global memory accesses. We will talk about shared memory, which is among the most important type of memory that the programmer can manage explicitly, to optimize the latency problems that can arise in some situations by accessing global device memory, for example. A practical code sample is provided in which employees shared memory to optimize Gaussian blur.