try disable omp
This commit is contained in:
parent
67d332e0f5
commit
6f01fa50ce
@ -1,6 +1,7 @@
|
|||||||
environment:
|
environment:
|
||||||
global:
|
global:
|
||||||
CMD_IN_ENV: "cmd /E:ON /V:ON /C .\\python-appveyor-demo\\appveyor\\run_with_env.cmd"
|
CMD_IN_ENV: "cmd /E:ON /V:ON /C .\\python-appveyor-demo\\appveyor\\run_with_env.cmd"
|
||||||
|
DISABLE_OPENMP: 1
|
||||||
|
|
||||||
matrix:
|
matrix:
|
||||||
- PYTHON: "C:\\Python27-x64"
|
- PYTHON: "C:\\Python27-x64"
|
||||||
|
|||||||
@ -7,10 +7,10 @@
|
|||||||
#ifndef XGBOOST_UTILS_OMP_H_
|
#ifndef XGBOOST_UTILS_OMP_H_
|
||||||
#define XGBOOST_UTILS_OMP_H_
|
#define XGBOOST_UTILS_OMP_H_
|
||||||
|
|
||||||
#if defined(_OPENMP)
|
#if defined(_OPENMP) && !defined(DISABLE_OPENMP)
|
||||||
#include <omp.h>
|
#include <omp.h>
|
||||||
#else
|
#else
|
||||||
#ifndef DISABLE_OPENMP
|
#if !defined(DISABLE_OPENMP)
|
||||||
// use pragma message instead of warning
|
// use pragma message instead of warning
|
||||||
#pragma message("Warning: OpenMP is not available,"\
|
#pragma message("Warning: OpenMP is not available,"\
|
||||||
"xgboost will be compiled into single-thread code."\
|
"xgboost will be compiled into single-thread code."\
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user