Skip to content

Commit

Permalink
Add innerproduct to the pairwise distance api (#1226)
Browse files Browse the repository at this point in the history
Authors:
  - Ben Frederickson (https://github.com/benfred)
  - Corey J. Nolet (https://github.com/cjnolet)

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

URL: #1226
  • Loading branch information
benfred authored Feb 13, 2023
1 parent 1cb4c34 commit cca81c4
Show file tree
Hide file tree
Showing 63 changed files with 555 additions and 276 deletions.
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

0 comments on commit cca81c4

Please sign in to comment.