* Update to C++17 * Turn off unity build * Update CMake to 3.18 * Use MSVC 2022 + CUDA 11.8 * Re-create stack for worker images * Allocate more disk space for Windows * Tempiorarily disable clang-tidy * RAPIDS now requires Python 3.10+ * Unpin cuda-python * Use latest NCCL * Use Ubuntu 20.04 in RMM image * Mark failing mgpu test as xfail
15 lines
487 B
CMake
15 lines
487 B
CMake
cmake_minimum_required(VERSION 3.18)
|
|
project(inference-demo LANGUAGES C VERSION 0.0.1)
|
|
find_package(xgboost REQUIRED)
|
|
|
|
# xgboost is built as static libraries, all cxx dependencies need to be linked into the
|
|
# executable.
|
|
if (XGBOOST_BUILD_STATIC_LIB)
|
|
enable_language(CXX)
|
|
# find again for those cxx libraries.
|
|
find_package(xgboost REQUIRED)
|
|
endif(XGBOOST_BUILD_STATIC_LIB)
|
|
|
|
add_executable(inference-demo inference.c)
|
|
target_link_libraries(inference-demo PRIVATE xgboost::xgboost)
|