gpu_sysman: enable plugin automatically when pkg-config
finds level-zero
dependency
#4239
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
ChangeLog: Build system: Automatically enable the gpu_sysman plugin when
level-zero
is available.While GPU plugin uses just Sysman API subset of the Level-Zero API family, name of the used library / loader is
level-zero
=> renamed configure variables for the dependency to use level-zero/LEVEL_ZERO names.Now that Level-Zero packages are in the distributions, I thought Sysman API GPU plugin can be enabled by default when
pkg-config
findslevel-zero
. I did not think it that useful for user to be able to specifylevel-zero
path with a configure option instead of suitablePKG_CONFIG_PATH
env variable => dropped--with-sysman
option.(There was no good example of doing that in addition to using
pkg-config
in reasonable amount of configure.ac code.)PS. Sysman plugin test does much more thorough checking than other tests, so running it takes >10x more time than the other tests.