Skip to content

Commit

Permalink
Correct lambda whose return type needs host evaluation. (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
robertmaynard authored Nov 5, 2022
1 parent acb5be3 commit 787259b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GPUTreeShap/gpu_treeshap.h
Original file line number Diff line number Diff line change
Expand Up @@ -904,7 +904,7 @@ void DeduplicatePaths(PathVectorT* device_paths,
size_t* h_num_runs_out;
CheckCuda(cudaMallocHost(&h_num_runs_out, sizeof(size_t)));

auto combine = [] __device__(PathElement<SplitConditionT> a,
auto combine = [] __host__ __device__(PathElement<SplitConditionT> a,
PathElement<SplitConditionT> b) {
// Combine duplicate features
a.split_condition.Merge(b.split_condition);
Expand Down

0 comments on commit 787259b

Please sign in to comment.