Now Reading
AMD Open-Supply GPU Kernel Driver Above 5 Million Strains, Complete Linux Kernel At 34.8 Million

AMD Open-Supply GPU Kernel Driver Above 5 Million Strains, Complete Linux Kernel At 34.8 Million

2023-08-31 11:47:53

RADEON

With the in-development Linux 6.6 kernel adding support for more upcoming Radeon graphics processors, meaning extra auto-generated header information for the brand new IP blocks… I used to be curious to see the general measurement now of the AMDGPU kernel driver together with its related code just like the AMDKFD compute driver. It is now above 5 million strains for the kernel driver portion.

Following the DRM-Subsequent merge to Linux 6.6, I ran some cloc stats on the AMD Linux kernel graphics driver code. Particularly, the drivers/gpu/drm/amd/ space that accommodates the trendy code across the AMDGPU DRM driver with AMDKFD compute, show code, widespread header information, and so on (however not counting the older “Radeon” driver in drivers/gpu/drm/radeon/). This open-source AMD Linux kernel graphics driver quantities to greater than 5 million strains:

    2173 textual content information.
    2172 distinctive information.                                          
       5 information ignored.

github.com/AlDanial/cloc v 1.90  T=16.28 s (133.2 information/s, 309249.2 strains/s)
-------------------------------------------------------------------------------
Language                     information          clean        remark           code
-------------------------------------------------------------------------------
C/C++ Header                  1363          66401         452869        3789164
C                              749         100186          73147         546125
Meeting                         3            597            525           1955
make                            53            391           1257            867
-------------------------------------------------------------------------------
SUM:                          2168         167575         527798        4338111
-------------------------------------------------------------------------------

After all, a lot of that’s auto-generated header information… A big portion of it with AMD persevering with to introduce new auto-generated header information with every new technology/model of a given block. These verbose header information has been AMD’s various to creating exhaustive public documentation on their GPUs that they had been as soon as identified for.

In the meantime the open-source NVIDIA “Nouveau” driver is round 201k (21.7k clean strains, 24.3k strains of feedback, and 155k strains of code). Or the Intel i915 DRM kernel graphics driver is round 381k strains by way of the identical cloc judgment.

It is also price reminding customers that that is simply the kernel graphics driver code and never counting all the code inside Mesa for offering the OpenGL and Vulkan driver help or different user-space elements.

See Also

Your entire Linux kernel supply tree as of this morning is available in at round 34.8 million strains, together with the documentation, numerous in-tree utilities/instruments, different helpers, and so on. That determine is from 4,414,747 clean strains, 4,246,577 strains of feedback, and 26,168,342 detected strains of code.

Source Link

What's Your Reaction?
Excited
0
Happy
0
In Love
0
Not Sure
0
Silly
0
View Comments (0)

Leave a Reply

Your email address will not be published.

2022 Blinking Robots.
WordPress by Doejo

Scroll To Top