Skip to content

Added ROCPROF_USE_SYS_YAML_CPP option to allow system-provided yaml-cpp#4223

Open
Muhamed-Husic wants to merge 2 commits intoROCm:developfrom
Muhamed-Husic:fix/therock/yaml-gcc15-fix
Open

Added ROCPROF_USE_SYS_YAML_CPP option to allow system-provided yaml-cpp#4223
Muhamed-Husic wants to merge 2 commits intoROCm:developfrom
Muhamed-Husic:fix/therock/yaml-gcc15-fix

Conversation

@Muhamed-Husic
Copy link

Motivation

Partially solves:: #3517

TheRock already provides yaml-cpp as sysdep (similar to sqlite3, zstd, etc.). Without this option, rocprofiler-sdk always builds its own vendored copy, which conflicts with TheRock's dependency management and prevents it from supplying its own yaml-cpp.

This option gives TheRock the ability to opt out of the vendored copy and supply yaml-cpp externaly.

Technical Details

Added ROCPROF_USE_SYS_YAML_CPP option into projects/rocprofiler-sdk/external/CMakeLists.txt. When enabled the build finds system yaml-cpp instead of building the vendored copy.

Submission Checklist

Related

@Muhamed-Husic
Copy link
Author

Note that this PR is connected to ROCm/TheRock#4066.

@marbre marbre requested a review from jbonnell-amd March 19, 2026 18:51
Copy link
Member

@marbre marbre left a comment

Choose a reason for hiding this comment

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

This fix should do it IMHO and would help to move away from the bundled dep. @jbonnell-amd I leave the review to you or otherwise please find someone to look at it.

@jbonnell-amd
Copy link
Collaborator

This fix should do it IMHO and would help to move away from the bundled dep. @jbonnell-amd I leave the review to you or otherwise please find someone to look at it.

Thanks, I took a quick look and it seems fine but I'll add in the SDK team for their input first (@venkat1361 @jrmadsen @sadikarmagan)

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.

3 participants