-
Notifications
You must be signed in to change notification settings - Fork 16
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
simplify wholegraph CMake, other small building and testing changes #102
Conversation
Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually. Contributors can view more details about this message here. |
/ok to test |
|
||
set -euo pipefail | ||
|
||
rapids-logger "Create test conda environment" | ||
. /opt/conda/etc/profile.d/conda.sh | ||
|
||
RAPIDS_VERSION="$(rapids-version)" | ||
export RAPIDS_VERSION_MAJOR_MINOR="$(rapids-version-major-minor)" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For re-use in cpp/Doxyfile
@@ -38,7 +38,7 @@ PROJECT_NAME = "WholeGraph C API" | |||
# could be handy for archiving the generated documentation or if some version | |||
# control system is used. | |||
|
|||
PROJECT_NUMBER = 25.02 | |||
PROJECT_NUMBER = $(RAPIDS_VERSION_MAJOR_MINOR) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is what other RAPIDS projects are doing, e.g. rmm
: https://github.com/rapidsai/rmm/blob/8275ba8dc94a7fc63d9513acd81e3a2cf30a85d1/doxygen/Doxyfile#L41
One less hard-coded version is nice for:
- smaller diffs on updates when development switches to new versions
- simpler
update-version.sh
- reduced risk of inconsistencies between docs and code
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
seems good to me. thx
include(rapids-cmake) | ||
include(rapids-cuda) | ||
include(rapids-cpm) | ||
|
||
rapids_cuda_init_architectures(PYLIBWHOLEGRAPH) | ||
|
||
project(PYLIBWHOLEGRAPH VERSION ${WHOLEGRAPH_VERSION} LANGUAGES CXX CUDA) | ||
project( | ||
PYLIBWHOLEGRAPH |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We're a little inconsistent about this across repos but it might be nice to use lowercase pylibwholegraph
here. However, it's fine if that is out-of-scope for this PR (and/or not important enough to change at all).
e.g. cuDF has project(CUDF...)
but also project(pylibcudf...)
, so our casing is not consistent even within a repo.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, yeah I'd noticed that. Let's treat it as out-of-scope for this PR. I'd like to merge this to simplify things ahead of setting up libwholegraph
wheels.
The project name flows into a bunch of other variables that CMake generates (see https://cmake.org/cmake/help/latest/command/project.html#command:project) and I'm not sure if those are case-sensitive, so changing the case could require other changes to CMake code here (and maybe in other places that build wholegraph from source, like RAPIDS devcontainers). I'd rather not work through that right now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, all those downstream uses are case sensitive. At some point we may want to strive for consistency across RAPIDS but it’s low priority - lots of work, risk of breakage, and not a lot of value.
/merge |
Proposes some miscellaneous packaging cleanup:
RAPIDS_VERSION
fromcugraph-gnn/rapids_config.cmake
Line 20 in af22a12
pre-commit
hooks to their latest versions