File tree 2 files changed +24
-8
lines changed
2 files changed +24
-8
lines changed Original file line number Diff line number Diff line change @@ -7,11 +7,11 @@ Install GBRL via pip:
7
7
8
8
pip install gbrl
9
9
10
- CPU only version is installed with the following command :
10
+ CPU only version despite having a valid CUDA installation by setting ` CUDA_ONLY=1 ` as an environment variable :
11
11
12
12
.. code-block :: console
13
-
14
- CPU_ONLY=1 pip install gbrl
13
+ export CPU_ONLY=1
14
+ pip install gbrl
15
15
16
16
Dependencies
17
17
============
@@ -42,15 +42,31 @@ Once installed make sure that the appropriate environment variables are set:
42
42
CUDA
43
43
~~~~
44
44
45
+ Make sure that ``CUDA_HOME `` is set.
46
+ For integration with Microsoft Visual Studio make sure to copy the following files:
47
+
48
+ .. code-block :: console
49
+ CUDA <cuda_version>.props
50
+ CUDA <cuda_version>.targets
51
+ CUDA <cuda_version>.xml
52
+ Nvda.Build.CudaTasks.v<cuda_version>.dll
53
+ cudart.lib
54
+
55
+
56
+ into ``<visual studio path>\BuildTools\MSBuild\Microsoft\VC\v160\BuildCustomizations ``.
57
+
58
+ Once GBRL is installed, verify that CUDA is enabled by running
59
+
45
60
.. code-block :: python
46
61
# Verify that GPU is visible by running
47
62
import gbrl
48
63
49
64
print (gbrl.cuda_available())
50
65
51
66
52
- Graphviz
53
- ~~~~~~~~
67
+ Graphviz (optional)
68
+ ~~~~~~~~~~~~~~~~~~~
69
+ For tree visualization make sure graphviz is installed before compilation.
70
+
54
71
55
- *OPTIONAL *
56
- For tree visualization make sure graphviz is installed before compilation.
72
+
Original file line number Diff line number Diff line change @@ -281,7 +281,7 @@ def print_tree(self, tree_idx: int) -> None:
281
281
self ._model .print_tree (tree_idx )
282
282
283
283
def plot_tree (self , tree_idx : int , filename : str ) -> None :
284
- """Plots tree using graphviz
284
+ """Plots tree using (only works if GBRL was compiled with graphviz)
285
285
286
286
Args:
287
287
tree_idx (int): tree index to plot
You can’t perform that action at this time.
0 commit comments