被审核了……真神奇啊
原文在这里
https://www.phoronix.com/scan.php?page=news_item&px=Linux-5.9-AMDGPU-Stats
里面说了,绝大部分都是自动生成的 .h 文件,实际代码比例很小
Though as reported previously, much of the AMDGPU driver code base is so large because of auto-generated header files for GPU registers, etc. In fact, 1.79 million lines as of Linux 5.9 for AMDGPU is simply header files that are predominantly auto-generated. It's 366k lines of the 2.71 million lines of code that is actual C code.
按照 reddit 上面的说法,代码量是2倍 nvidia,1.5倍 intel ,并不夸张
https://www.reddit.com/r/programming/comments/j9h18k/the_amd_radeon_graphics_driver_makes_up_roughly/g8ju39s?utm_source=share&utm_medium=web2x&context=3
【 在 libgcc (巭孬嫑夯昆勥茓 嘦勥昆夯茓巭昇) 的大作中提到: 】
: 根据最新的 Linux 5.9 Git 树记录,内核包含有 2049 万行代码,以及 358 万行代码注释和 372 万空行,总共 2781 万行。其中 AMDGPU 图形驱动占据的比例最高,共有 216 万行代码,以及 24.7 万行代码注释和 10.9 万空行,共 251 万行,占到了内核的约 10.5%。相比之下,N
: 200万行代码的驱动,乖乖
--
修改:eGust FROM 115.188.159.*
FROM 115.188.159.*