Fix compilation on Mac OSX High Sierra (10.13) (#5597)
* Fix compilation on Mac OSX High Sierra * [CI] Build Mac OSX binary wheel using Travis CI
This commit is contained in:
committed by
Hyunsu Cho
parent
844d7c1d5b
commit
02faddc5f3
@@ -70,8 +70,7 @@ struct EvalAFT : public Metric {
|
||||
|
||||
double nloglik_sum = 0.0;
|
||||
double weight_sum = 0.0;
|
||||
#pragma omp parallel for default(none) \
|
||||
firstprivate(nsize, is_null_weight, aft_loss_distribution_scale) \
|
||||
#pragma omp parallel for \
|
||||
shared(weights, y_lower, y_upper, yhat) reduction(+:nloglik_sum, weight_sum)
|
||||
for (omp_ulong i = 0; i < nsize; ++i) {
|
||||
// If weights are empty, data is unweighted so we use 1.0 everywhere
|
||||
|
||||
Reference in New Issue
Block a user