2536c937e3
翻译自英文原版 maths-cs-ai-compendium,共 20 章全部完成。 第01章 向量 | 第02章 矩阵 | 第03章 微积分 第04章 统计学 | 第05章 概率论 | 第06章 机器学习 第07章 计算语言学 | 第08章 计算机视觉 | 第09章 音频与语音 第10章 多模态学习 | 第11章 自主系统 | 第12章 图神经网络 第13章 计算与操作系统 | 第14章 数据结构与算法 第15章 生产级软件工程 | 第16章 SIMD与GPU编程 第17章 AI推理 | 第18章 ML系统设计 第19章 应用人工智能 | 第20章 前沿人工智能 翻译说明: - 所有数学公式 $...$ / $$...$$、代码块、图片引用完整保留 - mkdocs.yml 配置中文导航 + language: zh - README.md 已翻译为中文(兼 docs/index.md) - docs/ 目录包含指向各章文件的 symlink - 约 29,000 行中文内容,排除 .cache/ 构建缓存
33 lines
3.2 KiB
XML
33 lines
3.2 KiB
XML
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 650 220" width="650" height="220">
|
||
<text x="325" y="22" text-anchor="middle" font-family="Arial, sans-serif" font-size="14" font-weight="bold" fill="#333">Amdahl's Law: The Serial Bottleneck</text>
|
||
|
||
<!-- 1 processor -->
|
||
<text x="30" y="62" text-anchor="start" font-family="Arial, sans-serif" font-size="10" font-weight="bold" fill="#666">1 core:</text>
|
||
<rect x="100" y="48" width="100" height="24" rx="3" fill="#e74c3c" fill-opacity="0.3" stroke="#e74c3c" stroke-width="1"/>
|
||
<text x="150" y="64" text-anchor="middle" font-family="Arial, sans-serif" font-size="8" font-weight="bold" fill="#e74c3c">serial (10%)</text>
|
||
<rect x="200" y="48" width="400" height="24" rx="3" fill="#3498db" fill-opacity="0.3" stroke="#3498db" stroke-width="1"/>
|
||
<text x="400" y="64" text-anchor="middle" font-family="Arial, sans-serif" font-size="8" font-weight="bold" fill="#3498db">parallel (90%)</text>
|
||
|
||
<!-- 4 processors -->
|
||
<text x="30" y="107" text-anchor="start" font-family="Arial, sans-serif" font-size="10" font-weight="bold" fill="#666">4 cores:</text>
|
||
<rect x="100" y="93" width="100" height="24" rx="3" fill="#e74c3c" fill-opacity="0.3" stroke="#e74c3c" stroke-width="1"/>
|
||
<text x="150" y="109" text-anchor="middle" font-family="Arial, sans-serif" font-size="8" font-weight="bold" fill="#e74c3c">serial (10%)</text>
|
||
<rect x="200" y="93" width="100" height="24" rx="3" fill="#3498db" fill-opacity="0.3" stroke="#3498db" stroke-width="1"/>
|
||
<text x="250" y="109" text-anchor="middle" font-family="Arial, sans-serif" font-size="8" font-weight="bold" fill="#3498db">90% ÷ 4</text>
|
||
<text x="320" y="109" text-anchor="middle" font-family="Arial, sans-serif" font-size="10" fill="#27ae60">→ 3.1x speedup</text>
|
||
|
||
<!-- 16 processors -->
|
||
<text x="30" y="147" text-anchor="start" font-family="Arial, sans-serif" font-size="10" font-weight="bold" fill="#666">16 cores:</text>
|
||
<rect x="100" y="133" width="100" height="24" rx="3" fill="#e74c3c" fill-opacity="0.3" stroke="#e74c3c" stroke-width="1"/>
|
||
<text x="150" y="149" text-anchor="middle" font-family="Arial, sans-serif" font-size="8" font-weight="bold" fill="#e74c3c">serial (10%)</text>
|
||
<rect x="200" y="133" width="25" height="24" rx="3" fill="#3498db" fill-opacity="0.3" stroke="#3498db" stroke-width="1"/>
|
||
<text x="253" y="149" text-anchor="middle" font-family="Arial, sans-serif" font-size="10" fill="#27ae60">→ 6.4x speedup</text>
|
||
|
||
<!-- Infinite processors -->
|
||
<text x="30" y="187" text-anchor="start" font-family="Arial, sans-serif" font-size="10" font-weight="bold" fill="#666">∞ cores:</text>
|
||
<rect x="100" y="173" width="100" height="24" rx="3" fill="#e74c3c" fill-opacity="0.3" stroke="#e74c3c" stroke-width="1"/>
|
||
<text x="150" y="189" text-anchor="middle" font-family="Arial, sans-serif" font-size="8" font-weight="bold" fill="#e74c3c">serial (10%)</text>
|
||
<text x="220" y="189" text-anchor="middle" font-family="Arial, sans-serif" font-size="10" font-weight="bold" fill="#e74c3c">→ 10x max!</text>
|
||
|
||
<text x="325" y="215" text-anchor="middle" font-family="Arial, sans-serif" font-size="10" fill="#666">The serial fraction (red) cannot be parallelised — it limits the maximum speedup to 1/(1−p)</text>
|
||
</svg> |