Skip to content

Commit

Permalink
add note for windowing distribution
Browse files Browse the repository at this point in the history
  • Loading branch information
rongou committed May 9, 2019
1 parent 90009b8 commit 0b8bff5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/common/host_device_vector.h
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,9 @@ class GPUDistribution {
return GPUDistribution(devices, granularity, 0, std::vector<size_t>());
}

// NOTE(rongou): Explicit offsets don't necessarily cover the whole vector. Sections before the
// first shard or after the last shard may be on host only. This windowing is done in the GPU
// predictor for external memory support.
static GPUDistribution Explicit(GPUSet devices, std::vector<size_t> offsets) {
return GPUDistribution(devices, 1, 0, std::move(offsets));
}
Expand Down

0 comments on commit 0b8bff5

Please sign in to comment.