<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>共享内存 on mayulu的AI笔记</title><link>https://mayulu.co/tags/%E5%85%B1%E4%BA%AB%E5%86%85%E5%AD%98/</link><description>Recent content in 共享内存 on mayulu的AI笔记</description><generator>Hugo</generator><language>zhcn</language><copyright>Copyright © 2025–2026 mayulu All Rights Reserved</copyright><lastBuildDate>Sat, 03 Oct 2026 10:00:00 +0800</lastBuildDate><atom:link href="https://mayulu.co/tags/%E5%85%B1%E4%BA%AB%E5%86%85%E5%AD%98/index.xml" rel="self" type="application/rss+xml"/><item><title>CUDA 编程系列之三：内存墙与分块（tiling）的诞生</title><link>https://mayulu.co/posts/cuda-series-03-memory-and-tiling/</link><pubDate>Sat, 03 Oct 2026 10:00:00 +0800</pubDate><guid>https://mayulu.co/posts/cuda-series-03-memory-and-tiling/</guid><description>本文是 CUDA 编程读书笔记系列第三篇，解释为什么算力强悍的 GPU 依然会被内存带宽卡住。文章从 H100 的 66.9 TFLOPS 与 3.35 TB/s 出发，引出算术强度（FLOP/Byte）与 Roofline 模型这套判断框架，并用向量加法 1 FLOP 对 12 字节、比值仅 0.083 FLOP/B 的算例说明什么是深陷带宽受限。随后梳理寄存器、共享内存、常量内存、全局内存的层级，完整还原分块（tiling）技术的推导过程：矩阵乘法如何把 2N³ 次全局读取降到约 2N³/TILE，以及 __syncthreads 屏障、halo、占用率这三项代价。适合想建立 GPU 性能分析直觉的读者。</description></item></channel></rss>