From f70074f81cc15dbe526e14ebc74a10bc22c8e400 Mon Sep 17 00:00:00 2001 From: fis Date: Tue, 22 Feb 2022 03:26:59 +0800 Subject: [PATCH] Fix CPU build. --- src/data/data.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/data/data.cc b/src/data/data.cc index 9c6b65ac0edb..32613a8838df 100644 --- a/src/data/data.cc +++ b/src/data/data.cc @@ -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 =