disable openmp on solaris (#1912)

This commit is contained in:
Qiang Kou (KK)
2016-12-28 11:32:56 -08:00
committed by Tong He
parent 119763bc49
commit 7948d1c799
3 changed files with 44 additions and 743 deletions

View File

@@ -19,7 +19,9 @@ namespace xgboost {
namespace common {
// macro hanlding for threadlocal variables
#ifdef __GNUC__
#ifdef __sun
#define MX_TREAD_LOCAL
#elif defined(__GNUC__)
#define MX_TREAD_LOCAL __thread
#elif __STDC_VERSION__ >= 201112L
#define MX_TREAD_LOCAL _Thread_local