Skip to content

Commit

Permalink
Successfully having one thread load the data
Browse files Browse the repository at this point in the history
  • Loading branch information
cjnolet committed Oct 23, 2023
1 parent 7d8c907 commit 2d6e0ca
Show file tree
Hide file tree
Showing 3 changed files with 365 additions and 335 deletions.
9 changes: 8 additions & 1 deletion cpp/bench/ann/src/common/ann_types.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,17 @@ inline auto parse_memory_type(const std::string& memory_type) -> MemoryType
}
}

struct AlgoProperty {
class AlgoProperty {
public:
inline AlgoProperty() {}
inline AlgoProperty(MemoryType dataset_memory_type_, MemoryType query_memory_type_)
: dataset_memory_type(dataset_memory_type_), query_memory_type(query_memory_type_)
{
}
MemoryType dataset_memory_type;
// neighbors/distances should have same memory type as queries
MemoryType query_memory_type;
virtual ~AlgoProperty() = default;
};

class AnnBase {
Expand Down
Loading

0 comments on commit 2d6e0ca

Please sign in to comment.