Skip to content

Commit

Permalink
Fix CPU build.
Browse files Browse the repository at this point in the history
  • Loading branch information
trivialfis committed Feb 21, 2022
1 parent 0ddeec0 commit f70074f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/data/data.cc
Original file line number Diff line number Diff line change
Expand Up @@ -768,7 +768,9 @@ void MetaInfo::Validate(int32_t device) const {
}

#if !defined(XGBOOST_USE_CUDA)
void MetaInfo::SetInfoFromCUDA(StringView key, Json arr) { common::AssertGPUSupport(); }
void MetaInfo::SetInfoFromCUDA(Context const& ctx, StringView key, Json arr) {
common::AssertGPUSupport();
}
#endif // !defined(XGBOOST_USE_CUDA)

using DMatrixThreadLocal =
Expand Down

0 comments on commit f70074f

Please sign in to comment.