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

Add innerproduct to the pairwise distance api #1226

Merged
merged 13 commits into from
Feb 13, 2023
Merged
2 changes: 2 additions & 0 deletions cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,8 @@ if(RAFT_COMPILE_DIST_LIBRARY)
src/distance/distance/specializations/detail/hamming_unexpanded_float_float_float_int.cu
src/distance/distance/specializations/detail/hellinger_expanded_float_float_float_int.cu
src/distance/distance/specializations/detail/hellinger_expanded_double_double_double_int.cu
src/distance/distance/specializations/detail/inner_product_float_float_float_int.cu
src/distance/distance/specializations/detail/inner_product_double_double_double_int.cu
src/distance/distance/specializations/detail/jensen_shannon_float_float_float_int.cu
src/distance/distance/specializations/detail/jensen_shannon_double_double_double_int.cu
src/distance/distance/specializations/detail/kernels/gram_matrix_base_double.cu
Expand Down
4 changes: 2 additions & 2 deletions cpp/bench/distance/distance_common.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,15 @@ struct distance : public fixture {
void run_benchmark(::benchmark::State& state) override
{
loop_on_state(state, [this]() {
raft::distance::distance<DType, T, T, T>(x.data(),
raft::distance::distance<DType, T, T, T>(handle,
x.data(),
y.data(),
out.data(),
params.m,
params.n,
params.k,
(void*)workspace.data(),
worksize,
stream,
params.isRowMajor);
});
}
Expand Down
Loading