Originally posted by Blisterexe
View Post
Idea Raised For Reducing The Size Of The AMDGPU Driver With Its Massive Header Files
Collapse
X
-
-
-
Originally posted by dragorth View Post
Well, technically, headers are definitions on how to call functions in the code. The code is the expanded form of the headers, in a sense.
The real issues seems to be there is a lot of code that isn't used, which is a different concern, for the maintainers and new folks coming to the project.
For example, imagine the Rust folks wanting to interface with the AMD Driver, they would need to read through all of the headers to find which ones to actually use, then make the equivalent to those headers in Rust.
Leave a comment:
-
-
Are we absolutely sure that the AMD code is the only guilty party here?
Maybe Plymouth needs to be adjusted to wait a bit longer?
Leave a comment:
-
-
Originally posted by cl333r View PostOr maybe let the AMD devs port to the open source driver the remaining important stuff (if any) not yet present in the open source driver and then remove AMDGPU altogether.
Also the drivers these days use the same interfaces for the blob driver as for the open driver... so again nothing to remove or add its all the same stuff.
Leave a comment:
-
-
Originally posted by dragorth View Post
Doesn't Intel create a new driver every few generations?
Also, splitting out a new driver for different generations of chips is not a panacea either. You end up with a lot of very similar code in both modules that is not easily shared and then you end up needing to fix some bugs in multiple drivers instead of just one.
Leave a comment:
-
-
How much of the AMDGPU driver size is due to managing / interfacing with binary blobs contained within the GPUs?
Leave a comment:
-
-
Originally posted by ezst036 View PostIs it expected that the Nvidia open source driver will have this same header size problem once we get 10-15 generations in?
How does the Intel driver handle the problem for the integrated video?
Leave a comment:
-
-
Why not put them all in a folder instead of putting them in a different repository?
Why are people thinking of moving them in the first place when the problem is after the compilation?
Leave a comment:
-
-
Originally posted by loganj View Posti'm a bit confuse
are the headers in the final driver after compilation?
i was under the impresion that the headers files are only during compilation
if the are not in the finale driver whats the point in moving/trim them?
The real issues seems to be there is a lot of code that isn't used, which is a different concern, for the maintainers and new folks coming to the project.
For example, imagine the Rust folks wanting to interface with the AMD Driver, they would need to read through all of the headers to find which ones to actually use, then make the equivalent to those headers in Rust.
Leave a comment:
-
-
Originally posted by coder View PostWhat about some way to selectively determine what can be compiled with -Os ? By compiling some parts of the driver that way, you might even achieve faster runtimes! This wouldn't only be applicable to AMD's GPU driver, either.
The next question would then be how to distribute pre-made PGO profiles for a given source release, and that may be where this idea breaks down. Perhaps you could pull data back from PGO and use that to automatically annotate functions as hot or cold in the source though?
Still I doubt this would make such a big difference that it would be relevant here.
Leave a comment:
-
Leave a comment: