Skip to content

Commit

Permalink
Set thread.
Browse files Browse the repository at this point in the history
  • Loading branch information
trivialfis committed May 6, 2020
1 parent 11f2a8f commit a1358e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/cpp/data/test_sparse_page_dmatrix.cc
Expand Up @@ -94,7 +94,7 @@ TEST(SparsePageDMatrix, ThreadSafetyException) {

bool exception = false;
int threads = 1000;
#pragma omp parallel for
#pragma omp parallel for num_threads(threads)
for (auto i = 0; i < threads; i++) {
try {
auto iter = dmat->GetBatches<SparsePage>().begin();
Expand Down

0 comments on commit a1358e8

Please sign in to comment.