Skip to content

Commit

Permalink
fix set device.
Browse files Browse the repository at this point in the history
  • Loading branch information
trivialfis committed Feb 3, 2023
1 parent 1dbc98b commit 202c058
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/objective/adaptive.h
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ inline void UpdateTreeLeaf(Context const* ctx, HostDeviceVector<bst_node_t> cons
detail::UpdateTreeLeafHost(ctx, position.ConstHostVector(), group_idx, info, predt, alpha,
p_tree);
} else {
position.SetDevice(ctx->gpu_id);
detail::UpdateTreeLeafDevice(ctx, position.ConstDeviceSpan(), group_idx, info, predt, alpha,
p_tree);
}
Expand Down

0 comments on commit 202c058

Please sign in to comment.