Skip to content

Commit

Permalink
Add empty namespaces around global functions
Browse files Browse the repository at this point in the history
  • Loading branch information
bkarsin committed Oct 2, 2024
1 parent 1d76ebe commit 910aaa8
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cpp/src/neighbors/detail/vamana/greedy_search.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ __forceinline__ __device__ void sort_visited(
__syncthreads();
}

namespace {

/********************************************************************************************
GPU kernel to perform a batched GreedySearch on a graph. Since this is used for
Vamana construction, the entire visited list is kept and stored within the query_list.
Expand Down Expand Up @@ -275,6 +277,8 @@ __global__ void GreedySearchKernel(
return;
}

} // Empty namespace

/**
* @}
*/
Expand Down
4 changes: 4 additions & 0 deletions cpp/src/neighbors/detail/vamana/robust_prune.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@ __forceinline__ __device__ void sort_edges_and_cands(
__syncthreads();
}

namespace {

/********************************************************************************************
GPU kernel for RobustPrune operation for Vamana graph creation
Input - *graph to be an edgelist of degree number of edges per vector,
Expand Down Expand Up @@ -241,4 +243,6 @@ __global__ void RobustPruneKernel(
}
}

} // Empty namespace

} // namespace cuvs::neighbors::experimental::vamana::detail
4 changes: 4 additions & 0 deletions cpp/src/neighbors/detail/vamana/vamana_structs.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,8 @@ struct QueryCandidates {
*/
};

namespace {

/********************************************************************************************
* Kernels that work on QueryCandidates objects *
*******************************************************************************************/
Expand Down Expand Up @@ -467,6 +469,8 @@ __global__ void recompute_reverse_dists(
}
}

} // Empty namespace

/**
* @}
*/
Expand Down

0 comments on commit 910aaa8

Please sign in to comment.