Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cpp/include/cuvs/neighbors/common.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ namespace filtering {
enum class FilterType { None, Bitmap, Bitset };

struct base_filter {
virtual ~base_filter() = default;
~base_filter() = default;
Copy link
Contributor

Choose a reason for hiding this comment

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

Likely a silly question, but wouldn't this cause leaks or incorrect behaviour, if base_filter instances are deleted?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I didn't see any derived types that had local storage. If we have any derived types that do have storage they would still be okay as long as they are deleted as the derived type. ( So no holding a vector of base_filter pointers and calling delete on that ).

Copy link
Contributor

Choose a reason for hiding this comment

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

Agreed. I couldn't find that sort of thing either.

Thank you.

virtual FilterType get_filter_type() const = 0;
};

Expand Down
2 changes: 1 addition & 1 deletion cpp/tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ if(BUILD_TESTS)

ConfigureTest(
NAME NEIGHBORS_ALL_NEIGHBORS_TEST PATH neighbors/all_neighbors/test_float.cu GPUS 1 PERCENT 100
ADDITIONAL_DEP nccl
ADDITIONAL_DEP NCCL::NCCL
)

ConfigureTest(
Expand Down