diff --git a/cpp/bench/prims/fused_l2_nn.cu b/cpp/bench/prims/fused_l2_nn.cu index 60a2a6cfaa..38719aa1da 100644 --- a/cpp/bench/prims/fused_l2_nn.cu +++ b/cpp/bench/prims/fused_l2_nn.cu @@ -1,5 +1,5 @@ /* - * Copyright (c) 2019-2020, NVIDIA CORPORATION. + * Copyright (c) 2019-2021, NVIDIA CORPORATION. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -15,7 +15,7 @@ */ #include -#include +#include #include #include #include @@ -52,7 +52,7 @@ struct FusedL2NN : public Fixture { raft::linalg::rowNorm(yn, y, params.k, params.n, raft::linalg::L2Norm, true, stream); auto blks = raft::ceildiv(params.m, 256); - MLCommon::Distance::initKernel, int> + raft::distance::initKernel, int> <<>>(out, params.m, std::numeric_limits::max(), op); } @@ -69,9 +69,9 @@ struct FusedL2NN : public Fixture { void runBenchmark(::benchmark::State& state) override { loopOnState(state, [this]() { // it is enough to only benchmark the L2-squared metric - MLCommon::Distance::fusedL2NN, int>( + raft::distance::fusedL2NN, int>( out, x, y, xn, yn, params.m, params.n, params.k, (void*)workspace, op, - false, false, stream); + pairRedOp, false, false, stream); }); } @@ -80,7 +80,8 @@ struct FusedL2NN : public Fixture { T *x, *y, *xn, *yn; cub::KeyValuePair* out; int* workspace; - MLCommon::Distance::MinAndDistanceReduceOp op; + raft::distance::KVPMinReduce pairRedOp; + raft::distance::MinAndDistanceReduceOp op; }; // struct FusedL2NN static std::vector getInputs() { diff --git a/cpp/cmake/Dependencies.cmake b/cpp/cmake/Dependencies.cmake index 5ee25601b0..823e0c8001 100644 --- a/cpp/cmake/Dependencies.cmake +++ b/cpp/cmake/Dependencies.cmake @@ -39,7 +39,7 @@ else(DEFINED ENV{RAFT_PATH}) ExternalProject_Add(raft GIT_REPOSITORY https://github.com/rapidsai/raft.git - GIT_TAG 4a79adcb0c0e87964dcdc9b9122f242b5235b702 + GIT_TAG ffa8a8f5289623b29bb0fa4ed7eeb37b6dfd365c PREFIX ${RAFT_DIR} CONFIGURE_COMMAND "" BUILD_COMMAND "" diff --git a/cpp/src/dbscan/adjgraph/algo.cuh b/cpp/src/dbscan/adjgraph/algo.cuh index 80474863b2..138a595404 100644 --- a/cpp/src/dbscan/adjgraph/algo.cuh +++ b/cpp/src/dbscan/adjgraph/algo.cuh @@ -23,7 +23,7 @@ #include "../common.cuh" #include "pack.h" -#include +#include using namespace thrust; diff --git a/cpp/src/dbscan/runner.cuh b/cpp/src/dbscan/runner.cuh index dc5fc694bc..1cd2387e89 100644 --- a/cpp/src/dbscan/runner.cuh +++ b/cpp/src/dbscan/runner.cuh @@ -21,7 +21,7 @@ #include #include