Skip to content

Commit

Permalink
Fix for nightly CI tests: Use CUDA_REL variable in gpu build.sh script (
Browse files Browse the repository at this point in the history
rapidsai#4581)

Authors:
  - Dante Gama Dessavre (https://github.com/dantegd)

Approvers:
  - Corey J. Nolet (https://github.com/cjnolet)
  - Jordan Jacobelli (https://github.com/Ethyling)

URL: rapidsai#4581
  • Loading branch information
dantegd authored Feb 16, 2022
1 parent 23d68dd commit 41f0b79
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion ci/gpu/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ else

# FIXME: Project FLASH only builds for python version 3.8 which is the one used in
# the CUDA 11.0 job, need to change all versions to project flash
if [ "$PYTHON" == "3.8" ];then
if [ "$CUDA_REL" == "11.0" ];then
gpuci_logger "Using Project FLASH to install cuml python"
CONDA_FILE=`find ${CONDA_ARTIFACT_PATH} -name "cuml*.tar.bz2"`
CONDA_FILE=`basename "$CONDA_FILE" .tar.bz2` #get filename without extension
Expand Down
10 changes: 2 additions & 8 deletions python/cuml/test/test_nearest_neighbors.py
Original file line number Diff line number Diff line change
Expand Up @@ -547,14 +547,8 @@ def test_nearest_neighbors_rbc(distance, n_neighbors, nrows):
brute_d, brute_i = knn_cu_brute.kneighbors(
X[:query_rows, :], n_neighbors=n_neighbors)

rbc_i = cp.sort(rbc_i, axis=1)
brute_i = cp.sort(brute_i, axis=1)

# TODO: These are failing with 1 or 2 mismatched elements
# for very small values of k:
# https://github.com/rapidsai/cuml/issues/4262
assert len(brute_d[brute_d != rbc_d]) <= 3
assert len(brute_i[brute_i != rbc_i]) <= 3
assert len(brute_d[brute_d != rbc_d]) == 0
assert len(brute_i[brute_i != rbc_i]) == 0


@pytest.mark.parametrize("metric", valid_metrics_sparse())
Expand Down

0 comments on commit 41f0b79

Please sign in to comment.