Use Span in gpu coordinate. (#4029)

* Use Span in gpu coordinate.

* Use Span in device code.
* Fix shard size calculation.
  - Use lower_bound instead of upper_bound.
* Check empty devices.
This commit is contained in:
Jiaming Yuan
2019-01-02 11:32:43 +08:00
committed by GitHub
parent f368d0de2b
commit 1f022929f4
3 changed files with 62 additions and 36 deletions

View File

@@ -1,4 +1,6 @@
// Copyright by Contributors
/*!
* Copyright 2018 by Contributors
*/
#include <xgboost/linear_updater.h>
#include "../helpers.h"
#include "xgboost/gbm.h"