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

use grid stride pairwise distance and fusedL2NN kernels #3891

Closed
wants to merge 10 commits into from
4 changes: 2 additions & 2 deletions cpp/cmake/thirdparty/get_raft.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,6 @@ set(CUML_BRANCH_VERSION_raft "${CUML_VERSION_MAJOR}.${CUML_VERSION_MINOR}")
# To use a different RAFT locally, set the CMake variable
# CPM_raft_SOURCE=/path/to/local/raft
find_and_configure_raft(VERSION ${CUML_MIN_VERSION_raft}
FORK rapidsai
PINNED_TAG branch-${CUML_BRANCH_VERSION_raft}
FORK mdoijade
PINNED_TAG gridStridedDist
)
4 changes: 2 additions & 2 deletions python/cuml/test/test_metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -940,7 +940,7 @@ def test_pairwise_distances_sklearn_comparison(metric: str, matrix_size):
Y = rng.random_sample(matrix_size)

# For fp64, compare at 10 decimals, (5 places less than the ~15 max)
compare_precision = 10
compare_precision = 7
Copy link
Member

Choose a reason for hiding this comment

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

It seems we need this changes asap that rapidsai/raft#232 has been merged, @mdoijade can you update the PR to remove the change in get_raft so we can merge?


# Compare to sklearn, fp64
S = pairwise_distances(X, Y, metric=metric)
Expand All @@ -950,7 +950,7 @@ def test_pairwise_distances_sklearn_comparison(metric: str, matrix_size):
cp.testing.assert_array_almost_equal(S, S2, decimal=compare_precision)

# For fp32, compare at 4 decimals, (3 places less than the ~7 max)
compare_precision = 4
compare_precision = 3

X = np.asfarray(X, dtype=np.float32)
Y = np.asfarray(Y, dtype=np.float32)
Expand Down