Jiaming Yuan
48dddfd635
Porting elementwise metrics to GPU. ( #3952 )
...
* Port elementwise metrics to GPU.
* All elementwise metrics are converted to static polymorphic.
* Create a reducer for metrics reduction.
* Remove const of Metric::Eval to accommodate CubMemory.
2018-12-01 18:46:45 +13:00
Jiaming Yuan
93f63324e6
Address deprecation of Python ABC. ( #3909 )
2018-11-16 19:43:32 +13:00
Jiaming Yuan
fe999bf968
Add back python2 tests for Travis light weight tests. ( #3901 )
2018-11-15 22:17:35 +13:00
Jiaming Yuan
2ea0f887c1
Refactor Python tests. ( #3897 )
...
* Deprecate nose tests.
* Format python tests.
2018-11-15 13:56:33 +13:00
Jiaming Yuan
daf77ca7b7
Enable running objectives with 0 GPU. ( #3878 )
...
* Enable running objectives with 0 GPU.
* Enable 0 GPU for objectives.
* Add doc for GPU objectives.
* Fix some objectives defaulted to running on all GPUs.
2018-11-13 20:19:59 +13:00
Jiaming Yuan
97984f4890
Fix gpu coordinate running on multi-gpu. ( #3893 )
2018-11-13 19:09:55 +13:00
Jiaming Yuan
19ee0a3579
Refactor fast-hist, add tests for some updaters. ( #3836 )
...
Add unittest for prune.
Add unittest for refresh.
Refactor fast_hist.
* Remove fast_hist_param.
* Rename to quantile_hist.
Add unittests for QuantileHist.
* Refactor QuantileHist into .h and .cc file.
* Remove sync.h.
* Remove MGPU_mock test.
Rename fast hist method to quantile hist.
2018-11-07 21:15:07 +13:00
Jiaming Yuan
f1275f52c1
Fix specifying gpu_id, add tests. ( #3851 )
...
* Rewrite gpu_id related code.
* Remove normalised/unnormalised operatios.
* Address difference between `Index' and `Device ID'.
* Modify doc for `gpu_id'.
* Better LOG for GPUSet.
* Check specified n_gpus.
* Remove inappropriate `device_idx' term.
* Clarify GpuIdType and size_t.
2018-11-06 18:17:53 +13:00
Jiaming Yuan
1698fe64bb
Document GPU objectives in NEWS. ( #3865 )
2018-11-05 14:46:45 +13:00
trivialfis
516457fadc
Add basic unittests for gpu-hist method. ( #3785 )
...
* Split building histogram into separated class.
* Extract `InitCompressedRow` definition.
* Basic tests for gpu-hist.
* Document the code more verbosely.
* Removed `HistCutUnit`.
* Removed some duplicated copies in `GPUHistMaker`.
* Implement LCG and use it in tests.
2018-10-15 15:47:00 +13:00
trivialfis
184efff9f9
Remove NoConstraint. ( #3792 )
2018-10-15 15:43:06 +13:00
trivialfis
4b892c2b30
Remove obsoleted QuantileHistMaker. ( #3761 )
...
Fix #3755 .
2018-10-06 11:22:15 -07:00
trivialfis
c6b5df67f6
Catch dmlc::Error. ( #3751 )
...
Fix #3643 .
2018-10-04 16:51:38 +13:00
trivialfis
d594b11f35
Implement transform to reduce CPU/GPU code duplication. ( #3643 )
...
* Implement Transform class.
* Add tests for softmax.
* Use Transform in regression, softmax and hinge objectives, except for Cox.
* Mark old gpu objective functions deprecated.
* static_assert for softmax.
* Split up multi-gpu tests.
2018-10-02 15:06:21 +13:00
trivialfis
5a7f7e7d49
Implement devices to devices reshard. ( #3721 )
...
* Force clearing device memory before Reshard.
* Remove calculating row_segments for gpu_hist and gpu_sketch.
* Guard against changing device.
2018-09-28 17:40:23 +12:00
trivialfis
9119f9e369
Fix gpu devices. ( #3693 )
...
* Fix gpu_set normalized and unnormalized.
* Fix DeviceSpan.
2018-09-19 17:39:42 +12:00
trivialfis
60787ecebc
Merge generic device helper functions into gpu set. ( #3626 )
...
* Remove the use of old NDevices* functions.
* Use GPUSet in timer.h.
2018-08-26 18:14:23 +12:00
trivialfis
cf2d86a4f6
Add travis sanitizers tests. ( #3557 )
...
* Add travis sanitizers tests.
* Add gcc-7 in Travis.
* Add SANITIZER_PATH for CMake.
* Enable sanitizer tests in Travis.
* Fix memory leaks in tests.
* Fix all memory leaks reported by Address Sanitizer.
* tests/cpp/helpers.h/CreateDMatrix now returns raw pointer.
2018-08-19 16:40:30 +12:00
trivialfis
7c82dc92b2
Fix accessing DMatrix.handle before set. ( #3599 )
...
Close #3597 .
2018-08-16 15:26:06 -07:00
trivialfis
9265964ee7
Fix ptrdiff_t namespace in Span. ( #3588 )
...
Fix #3587 .
2018-08-15 10:04:55 +12:00
trivialfis
2c502784ff
Span class. ( #3548 )
...
* Add basic Span class based on ISO++20.
* Use Span<Entry const> instead of Inst in SparsePage.
* Add DeviceSpan in HostDeviceVector, use it in regression obj.
2018-08-14 17:58:11 +12:00
trivialfis
55caad6e49
Remove redundant FindGTest.cmake. ( #3533 )
...
During removal of FindGTest.cmake, also
* Fix gtest include dirs.
* Remove some blanks and use PWD for gtest dir.
2018-08-07 10:08:08 +12:00
trivialfis
34dc9155ab
Use __CUDA__ macro with __NVCC__. ( #3539 )
...
* __CUDA__ is defined in clang. Making the change won't make clang
compile xgboost, but syntax checking from clang is at least partially
working.
2018-08-02 22:04:23 +12:00
trivialfis
860263f814
Enable building with sanitizers. ( #3525 )
2018-07-31 17:25:47 +12:00
trivialfis
8973f2cb0e
Fix building dmlc-core from xgboost. ( #3522 )
...
Move building dmlc-core before adding DMLC_LOG_CUSTOMIZE.
Fix #3520 .
2018-07-28 10:35:11 -07:00
trivialfis
34aeee2961
Fix test_param.cc header path ( #3317 )
2018-05-28 10:26:29 -07:00