-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2a4df8e
commit 3f35ba7
Showing
35 changed files
with
996 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
function (write_version) | ||
configure_file( | ||
${xgboost_SOURCE_DIR}/cmake/build_config.h.in | ||
${xgboost_SOURCE_DIR}/include/xgboost/build_config.h @ONLY) | ||
endfunction (write_version) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/*! | ||
* Copyright 2019 by Contributors | ||
* \file build_config.h | ||
* | ||
* Generated from `cmake/build_config.h.in` by cmake. | ||
*/ | ||
#ifndef XGBOOST_BUILD_CONFIG_H_ | ||
#define XGBOOST_BUILD_CONFIG_H_ | ||
|
||
// These check are for Makefile. | ||
#if !defined(XGBOOST_MM_PREFETCH_PRESENT) && !defined(XGBOOST_BUILTIN_PREFETCH_PRESENT) | ||
/* default logic for software pre-fetching */ | ||
#if (defined(_MSC_VER) && (defined(_M_IX86) || defined(_M_AMD64))) || defined(__INTEL_COMPILER) | ||
// Enable _mm_prefetch for Intel compiler and MSVC+x86 | ||
#define XGBOOST_MM_PREFETCH_PRESENT | ||
#define XGBOOST_BUILTIN_PREFETCH_PRESENT | ||
#elif defined(__GNUC__) | ||
// Enable __builtin_prefetch for GCC | ||
#define XGBOOST_BUILTIN_PREFETCH_PRESENT | ||
#endif // GUARDS | ||
|
||
#endif // !defined(XGBOOST_MM_PREFETCH_PRESENT) && !defined() | ||
|
||
#define XGBOOST_VER_MAJOR @xgboost_VERSION_MAJOR@ | ||
#define XGBOOST_VER_MINOR @xgboost_VERSION_MINOR@ | ||
#define XGBOOST_VER_PATCH @xgboost_VERSION_PATCH@ | ||
|
||
#endif // XGBOOST_BUILD_CONFIG_H_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.