Skip to content

Commit

Permalink
change thrust env
Browse files Browse the repository at this point in the history
  • Loading branch information
QinbinLi committed Jan 26, 2023
1 parent 436f3ae commit 3ed5354
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/FedTree/Tree/hist_tree_builder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
#include <iterator>
#include <algorithm>
#include <random>
#define THRUST_HOST_SYSTEM THRUST_HOST_SYSTEM_OMP

using namespace thrust;

Expand Down Expand Up @@ -694,7 +693,7 @@ void HistTreeBuilder::compute_histogram_in_a_level(int level, int n_max_splits,

this->build_n_hist++;
if (n_column > 1){
inclusive_scan_by_key(thrust::omp::par, hist_fid, hist_fid + n_split,
inclusive_scan_by_key(thrust::host, hist_fid, hist_fid + n_split,
hist.host_data(), hist.host_data());
}
else{
Expand Down

0 comments on commit 3ed5354

Please sign in to comment.