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

Rename CMake package to ROCmCMakeBuildTools #128

Merged
merged 13 commits into from
Oct 11, 2023

Conversation

lawruble13
Copy link
Collaborator

@lawruble13 lawruble13 commented May 11, 2023

Having the name of this CMake package be ROCM is consistently confusing to users who expect find_package(ROCM [...]) to add ROCm packages to their build, instead of tools that we use to build ROCm (see #49). Renaming the CMake project to ROCmCMakeBuildTools makes the purpose of this package clearer.

@saadrahim saadrahim changed the base branch from develop to release-staging/rocm-rel-5.7 July 12, 2023 19:39
Copy link
Collaborator

@cgmb cgmb left a comment

Choose a reason for hiding this comment

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

Why did the build fail before the tests were changed? Our tests passing without requiring any changes would be proof that this is being done in a backwards-compatible manner. We don't have to release (or even merge) like that, but it would be nice to see it pass once without test changes, if possible.

share/rocm/cmake/ROCMConfig.cmake Outdated Show resolved Hide resolved
share/rocm/cmake/ROCMConfig.cmake Outdated Show resolved Hide resolved
share/rocm/cmake/ROCMConfig.cmake Outdated Show resolved Hide resolved
@lawruble13
Copy link
Collaborator Author

The tests failed prior to switching the package name due to the -Werror=dev argument passed to CMake when running the tests. I agree though that there should be tests validating that the backwards compatibility measures do actually work.

Copy link

@keryell keryell left a comment

Choose a reason for hiding this comment

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

I can see in the description of this PR: "No description provided." which is not very inclusive for an open-source project. :-)
Any rationale for this PR?
At least having the information from the CHANGELOG.md could be a good start.
Feel free to put some comments in the CMake files themselves too to help future readers/users.

@saadrahim saadrahim changed the title Rename CMake package Rename CMake package to ROCmCMakeBuildTools Jul 24, 2023
@lawruble13 lawruble13 changed the base branch from release-staging/rocm-rel-5.7 to develop August 17, 2023 19:26
@saadrahim
Copy link
Member

I can see in the description of this PR: "No description provided." which is not very inclusive for an open-source project. :-) Any rationale for this PR? At least having the information from the CHANGELOG.md could be a good start. Feel free to put some comments in the CMake files themselves too to help future readers/users.

@lawruble13 can you address this request?

Copy link

@keryell keryell left a comment

Choose a reason for hiding this comment

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

Thanks for the clarification.

In order to have as smooth a transition as possible, starting this as
a notice, will make into a deprecation/warning in ~6.2, error sometime
later, remove in 7.0.
@lawruble13
Copy link
Collaborator Author

I changed the DEPRECATION to a NOTICE so that we can start letting people know about this before we start to throw warnings/errors at them depending on their settings.

@lawruble13 lawruble13 requested a review from cgmb August 18, 2023 16:22
@@ -2,7 +2,7 @@
# Copyright (C) 2023 Advanced Micro Devices, Inc.
# ######################################################################################################################

message(DEPRECATION
message(NOTICE
"Use of find_package(ROCM) is deprecated, please switch to find_package(ROCmCMakeBuildTools)."
Copy link

Choose a reason for hiding this comment

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

Then, you probably need to change the message to something like

    "Use of find_package(ROCM) will be deprecated soon, please switch to find_package(ROCmCMakeBuildTools)."

Copy link
Collaborator

@cgmb cgmb left a comment

Choose a reason for hiding this comment

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

I changed the DEPRECATION to a NOTICE so that we can start letting people know about this before we start to throw warnings/errors at them depending on their settings.

The NOTICE category wasn't added until CMake 3.15. You could use STATUS, but I would suggest leaving it as a DEPRECATION. Users can set CMAKE_ERROR_DEPRECATED or CMAKE_WARN_DEPRECATED to choose how they want deprecations to be treated. If you don't want to deprecate it yet, another option would be to omit the message entirely.

The updated deprecation message is better than before, but I think you would benefit from reviewing deprecation messages from project like rust, libstdc++ or Qt so that you can match their style and tone.

@lawruble13 lawruble13 changed the base branch from develop to release-staging/rocm-rel-6.0 October 6, 2023 22:05
@lawruble13 lawruble13 merged commit df4df6d into ROCm:release-staging/rocm-rel-6.0 Oct 11, 2023
7 checks passed
lawruble13 added a commit that referenced this pull request Oct 11, 2023
Having the name of this CMake package be ROCM is consistently confusing to users who expect find_package(ROCM [...]) to add ROCm packages to their build, instead of tools that we use to build ROCm (see #49). Renaming the CMake project to ROCmCMakeBuildTools makes the purpose of this package clearer.

In order to have as smooth a transition as possible, starting this as a notice, will make into a deprecation/warning in ~6.2, error sometime later, remove in 7.0.
lawruble13 added a commit that referenced this pull request Oct 11, 2023
For discussion, see: Rename CMake package to ROCmCMakeBuildTools (#128).

Having the name of this CMake package be ROCM is consistently confusing to users who expect find_package(ROCM [...]) to add ROCm packages to their build, instead of tools that we use to build ROCm (see #49). Renaming the CMake project to ROCmCMakeBuildTools makes the purpose of this package clearer.

In order to have as smooth a transition as possible, starting this as a notice, will make into a deprecation/warning in ~6.2, error sometime later, remove in 7.0.
lawruble13 added a commit to lawruble13/rocm-cmake that referenced this pull request Oct 11, 2023
For discussion, see: Rename CMake package to ROCmCMakeBuildTools (ROCm#128).

Having the name of this CMake package be ROCM is consistently confusing to users who expect find_package(ROCM [...]) to add ROCm packages to their build, instead of tools that we use to build ROCm (see ROCm#49). Renaming the CMake project to ROCmCMakeBuildTools makes the purpose of this package clearer.

In order to have as smooth a transition as possible, starting this as a notice, will make into a deprecation/warning in ~6.2, error sometime later, remove in 7.0.
lawruble13 added a commit that referenced this pull request Oct 11, 2023
For discussion, see: Rename CMake package to ROCmCMakeBuildTools (#128).

Having the name of this CMake package be ROCM is consistently confusing to users who expect find_package(ROCM [...]) to add ROCm packages to their build, instead of tools that we use to build ROCm (see #49). Renaming the CMake project to ROCmCMakeBuildTools makes the purpose of this package clearer.

In order to have as smooth a transition as possible, starting this as a notice, will make into a deprecation/warning in ~6.2, error sometime later, remove in 7.0.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants