Add explicit template specialization for portability (#5921)

* Add explicit template specializations

* Adding Specialization for FileAdapterBatch
This commit is contained in:
Philip Hyunsu Cho
2020-07-22 12:31:17 -07:00
committed by GitHub
parent bc1d3ee230
commit 4af857f95d
2 changed files with 33 additions and 9 deletions

View File

@@ -933,7 +933,19 @@ void SparsePage::PushCSC(const SparsePage &batch) {
self_offset = std::move(offset);
}
template uint64_t
SparsePage::Push(const data::DenseAdapterBatch& batch, float missing, int nthread);
template uint64_t
SparsePage::Push(const data::CSRAdapterBatch& batch, float missing, int nthread);
template uint64_t
SparsePage::Push(const data::CSCAdapterBatch& batch, float missing, int nthread);
template uint64_t
SparsePage::Push(const data::DataTableAdapterBatch& batch, float missing, int nthread);
template uint64_t
SparsePage::Push(const data::FileAdapterBatch& batch, float missing, int nthread);
namespace data {
// List of files that will be force linked in static links.
DMLC_REGISTRY_LINK_TAG(sparse_page_raw_format);
} // namespace data