Skip to content

Commit

Permalink
Merge pull request #2788 from drobison00/cuml_2767
Browse files Browse the repository at this point in the history
Bugfix for 2767 - fix rf path trying to sample 0 columns
  • Loading branch information
beckernick authored Sep 3, 2020
2 parents 567a852 + 8f570ee commit 212813d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,7 @@
- PR #2305: Fixed race condition in DBScan
- PR #2354: Fix broken links in README
- PR #2619: Explicitly skip raft test folder for pytest 6.0.0
- PR #2788: Set the minimum number of columns that can be sampled to 1 to fix 0 mem allocation error

# cuML 0.13.0 (31 Mar 2020)

Expand Down
1 change: 1 addition & 0 deletions cpp/src/decisiontree/memory.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ void TemporaryMemory<T, L>::LevelMemAllocator(
}
size_t maxnodes = max_nodes_per_level;
size_t ncols_sampled = (size_t)(ncols * tree_params.max_features);
ncols_sampled = ncols_sampled > 0 ? ncols_sampled : 1;
if (depth < 64) {
gather_max_nodes = std::min((size_t)(nrows + 1),
(size_t)(pow((size_t)2, (size_t)depth) + 1));
Expand Down

0 comments on commit 212813d

Please sign in to comment.