-
-
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.
Enable OpenMP with Apple Clang (Mac default compiler) (#5146)
* Add OpenMP as CMake target * Require CMake 3.12, to allow linking OpenMP target to objxgboost * Specify OpenMP compiler flag for CUDA host compiler * Require CMake 3.16+ if the OS is Mac OSX * Use AppleClang in Mac tests. * Update dmlc-core
- Loading branch information
1 parent
f3d7877
commit 9b0af6e
Showing
9 changed files
with
34 additions
and
45 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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
cmake_minimum_required(VERSION 3.3) | ||
cmake_minimum_required(VERSION 3.12) | ||
find_package(xgboost REQUIRED) | ||
add_executable(api-demo c-api-demo.c) | ||
target_link_libraries(api-demo xgboost::xgboost) |
Submodule dmlc-core
updated
16 files
+3 −1 | .travis.yml | |
+23 −17 | CMakeLists.txt | |
+6 −6 | appveyor.yml | |
+4 −0 | cmake/build_config.h.in | |
+6 −0 | include/dmlc/base.h | |
+4 −0 | include/dmlc/build_config_default.h | |
+4 −0 | include/dmlc/concurrency.h | |
+20 −3 | include/dmlc/logging.h | |
+1 −1 | include/dmlc/omp.h | |
+4 −2 | include/dmlc/thread_local.h | |
+0 −2 | make/dmlc.mk | |
+4 −10 | scripts/travis/travis_script.sh | |
+4 −0 | test/unittest/CMakeLists.txt | |
+4 −0 | tracker/dmlc_tracker/launcher.py | |
+13 −0 | tracker/dmlc_tracker/util.py | |
+4 −2 | tracker/dmlc_tracker/yarn.py |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
FROM ubuntu:18.04 | ||
ARG CMAKE_VERSION=3.3 | ||
ARG CMAKE_VERSION=3.12 | ||
|
||
# Environment | ||
ENV DEBIAN_FRONTEND noninteractive | ||
|
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