From 60ec7b842443c4902a2de3e0abe502fc537ad8eb Mon Sep 17 00:00:00 2001 From: Philip Hyunsu Cho Date: Wed, 24 Jan 2024 13:02:39 -0800 Subject: [PATCH] Throw error for 32-bit archs (#10005) --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index dbfa1cdc2..4f240e806 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -39,6 +39,9 @@ elseif(CMAKE_CXX_COMPILER_ID STREQUAL "Clang") message(FATAL_ERROR "Need Clang 9.0 or newer to build XGBoost") endif() endif() +if(CMAKE_SIZE_OF_VOID_P EQUAL 4) + message(FATAL_ERROR "XGBoost does not support 32-bit archs. Please use 64-bit arch instead.") +endif() include(${xgboost_SOURCE_DIR}/cmake/PrefetchIntrinsics.cmake) find_prefetch_intrinsics()