Skip to content

Commit 224114f

Browse files
Dmitry Razdoburdinrazdoburdin
authored andcommitted
add some forgotted files
1 parent 3d73d2c commit 224114f

19 files changed

+5325
-0
lines changed

plugin/sycl/README.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# SYCL-based Algorithm for Tree Construction
2+
This plugin adds support of SYCL programming model for tree construction and prediction algorithms to XGBoost.
3+
4+
## Usage
5+
Specify the 'device' parameter as one of the following options to offload model training and inference on SYCL device.
6+
7+
### Algorithms
8+
| device | Description |
9+
| --- | --- |
10+
sycl | use default sycl device |
11+
sycl:gpu | use default sycl gpu |
12+
sycl:cpu | use default sycl cpu |
13+
sycl:gpu:N | use sycl gpu number N |
14+
sycl:cpu:N | use sycl cpu number N |
15+
16+
Python example:
17+
```python
18+
param['device'] = 'sycl:gpu:0'
19+
```
20+
21+
## Dependencies
22+
Building the plugin requires Data Parallel C++ Compiler (https://software.intel.com/content/www/us/en/develop/tools/oneapi/components/dpc-compiler.html)
23+
24+
## Build
25+
From the command line on Linux starting from the xgboost directory:
26+
27+
```bash
28+
$ mkdir build
29+
$ cd build
30+
$ EXPORT CXX=dpcpp && cmake .. -DPLUGIN_SYCL=ON
31+
$ make -j
32+
```

plugin/sycl/common/hist_util.cc

Lines changed: 500 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)