Skip to content

Commit

Permalink
don't use omp simd in msvc
Browse files Browse the repository at this point in the history
  • Loading branch information
david-cortes committed Dec 2, 2023
1 parent 9f342dc commit 75849ac
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions R-package/src/xgboost_R.cc
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,9 @@ XGB_DLL SEXP XGDMatrixSliceDMatrix_R(SEXP handle, SEXP idxset) {
int res_code;
{
std::vector<int> idxvec(len);
#ifndef _MSC_VER
#pragma omp simd
#endif
for (R_xlen_t i = 0; i < len; ++i) {
idxvec[i] = idxset_[i] - 1;
}
Expand Down

0 comments on commit 75849ac

Please sign in to comment.