Skip to content

Commit

Permalink
limit data.table parallelism too
Browse files Browse the repository at this point in the history
  • Loading branch information
jameslamb committed Dec 6, 2023
1 parent b068106 commit ebf61f1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions R-package/tests/testthat/helper.R
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@
.LGB_MAX_THREADS <- 2L
setLGBMthreads(.LGB_MAX_THREADS)

# control data.table parallelism
# ref: https://github.com/Rdatatable/data.table/issues/5658
data.table::setDTthreads(1L)

# by default, how much should results in tests be allowed to differ from hard-coded expected numbers?
.LGB_NUMERIC_TOLERANCE <- 1e-6

Expand Down

0 comments on commit ebf61f1

Please sign in to comment.