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

Remove no longer instantiated templates from list of extern template declarations #1272

Merged
merged 1 commit into from
Feb 11, 2023
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -32,22 +32,16 @@ using fp8u_t = fp_8bit<5, false>;
extern template struct ivfpq_compute_similarity<IdxT, OutT, LutT>::configured<false, true>; \
extern template struct ivfpq_compute_similarity<IdxT, OutT, LutT>::configured<true, false>;

#define RAFT_INST_ALL_IDX_T(OutT, LutT) \
RAFT_INST(uint64_t, OutT, LutT) \
RAFT_INST(int64_t, OutT, LutT) \
RAFT_INST(uint32_t, OutT, LutT)

#define RAFT_INST_ALL_OUT_T(LutT) \
RAFT_INST_ALL_IDX_T(float, LutT) \
RAFT_INST_ALL_IDX_T(half, LutT)
RAFT_INST(uint64_t, float, LutT) \
RAFT_INST(uint64_t, half, LutT)

RAFT_INST_ALL_OUT_T(float)
RAFT_INST_ALL_OUT_T(half)
RAFT_INST_ALL_OUT_T(fp8s_t)
RAFT_INST_ALL_OUT_T(fp8u_t)

#undef RAFT_INST
#undef RAFT_INST_ALL_IDX_T
#undef RAFT_INST_ALL_OUT_T

#define RAFT_INST(T, IdxT) \
Expand Down