Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gpu_sysman: enable plugin automatically when pkg-config finds level-zero dependency #4239

Merged
merged 1 commit into from
Jan 20, 2024

Conversation

eero-t
Copy link
Contributor

@eero-t eero-t commented Jan 17, 2024

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 finds level-zero. I did not think it that useful for user to be able to specify level-zero path with a configure option instead of suitable PKG_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.

@eero-t eero-t requested a review from a team as a code owner January 17, 2024 19:48
@collectd-bot collectd-bot added this to the 6.0 milestone Jan 17, 2024
@octo octo added the Feature label Jan 20, 2024
Copy link
Member

@octo octo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

And enable Sysman plugin automatically when dependency is found.

While GPU plugin uses just Sysman API subset of the Level-Zero API
family, name of the used library / loader is level-zero => dropped
"--with-sysman" option and renamed configure variables.

Also, now that Level-Zero packages are in the distributions, Sysman
API GPU plugin could be enabled by default when pkg-config finds
level-zero. This simplifies config code.

Signed-off-by: Eero Tamminen <eero.t.tamminen@intel.com>
@octo octo merged commit 6aed2ac into collectd:collectd-6.0 Jan 20, 2024
25 of 27 checks passed
@eero-t eero-t deleted the pkg-config-l0 branch January 22, 2024 09:49
@octo octo added the core label Jan 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants