Skip to content

Commit

Permalink
remove versioning workaround for nightlies (#26)
Browse files Browse the repository at this point in the history
Within this release, `nx-cugraph` moved from https://github.com/rapidsai/cugraph to this repo.

To avoid conflicts between nightlies produced from the different sources, CI scripts here were hard-coding the version for CI artifacts to `24.12.00a1000`. That should be removed now that this is the only repo packages are being published from (should have been removed in #16, sorry for missing it).

Authors:
  - James Lamb (https://github.com/jameslamb)
  - Erik Welch (https://github.com/eriknw)

Approvers:
  - Ray Douglass (https://github.com/raydouglass)
  - Ralph Liu (https://github.com/nv-rliu)
  - Erik Welch (https://github.com/eriknw)

URL: #26
jameslamb authored Nov 15, 2024
1 parent 6a3ba40 commit f1a8f03
Showing 3 changed files with 3 additions and 7 deletions.
5 changes: 1 addition & 4 deletions ci/build_python.sh
Original file line number Diff line number Diff line change
@@ -9,10 +9,7 @@ source rapids-date-string

rapids-print-env

# TODO: revert this once we start publishing nightly packages from the
# 'nx-cugraph' repo and stop publishing them from the 'cugraph' repo
# rapids-generate-version > ./VERSION
echo "24.12.00a1000" > ./VERSION
rapids-generate-version > ./VERSION

rapids-logger "Begin py build"

4 changes: 1 addition & 3 deletions ci/test_python.sh
Original file line number Diff line number Diff line change
@@ -32,11 +32,9 @@ mkdir -p "${RAPIDS_TESTS_DIR}" "${RAPIDS_COVERAGE_DIR}"

rapids-print-env

# TODO: remove the '>=24.12.00a1000' once we start publishing nightly packages
# from the 'nx-cugraph' repo and stop publishing them from the 'cugraph' repo
rapids-mamba-retry install \
--channel "${PYTHON_CHANNEL}" \
"nx-cugraph=${RAPIDS_VERSION}.*,>=24.12.00a1000"
"nx-cugraph=${RAPIDS_VERSION}.*"

rapids-logger "Check GPU usage"
nvidia-smi
1 change: 1 addition & 0 deletions nx_cugraph/algorithms/core.py
Original file line number Diff line number Diff line change
@@ -46,6 +46,7 @@ def core_number(G):
degree_type="bidirectional",
do_expensive_check=False,
)
core_numbers = core_numbers // 2 # Added this in 24.12 (behavior changed)
return G._nodearrays_to_dict(node_ids, core_numbers)


0 comments on commit f1a8f03

Please sign in to comment.