Skip to content

Commit

Permalink
Fix is_power_of_2.
Browse files Browse the repository at this point in the history
  • Loading branch information
bdice authored Jun 29, 2022
1 parent e336700 commit 88656a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpp/src/fil/fil.cu
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,7 @@ void check_params(const forest_params_t* params, bool dense)
ASSERT(params->blocks_per_sm >= 0, "blocks_per_sm must be nonnegative");
ASSERT(params->n_items >= 0, "n_items must be non-negative");
ASSERT(params->threads_per_tree > 0, "threads_per_tree must be positive");
ASSERT(params->threads_per_tree & (params->threads_per_tree - 1) == 0,
ASSERT((params->threads_per_tree & (params->threads_per_tree - 1)) == 0,
"threads_per_tree must be a power of 2");
ASSERT(params->threads_per_tree <= FIL_TPB,
"threads_per_tree must not "
Expand Down

0 comments on commit 88656a5

Please sign in to comment.