File tree 3 files changed +5
-13
lines changed
3 files changed +5
-13
lines changed Original file line number Diff line number Diff line change @@ -28,13 +28,7 @@ xcode command line tools should be installed installed
28
28
### Installation
29
29
```
30
30
pip install gbrl
31
- ```
32
- To install a cpu only version please run
33
- ```
34
- CPU_ONLY=1 pip install gbrl
35
- ```
36
-
37
- For GPU support GBRL looks for ` CUDA_PATH ` or ` CUDA_HOME ` environment variables. Unless found, GBRL will automatically compile only for CPU.
31
+ ```
38
32
39
33
Verify that GPU is visible by running
40
34
```
@@ -43,6 +37,8 @@ import gbrl
43
37
gbrl.cuda_available()
44
38
```
45
39
40
+ GBRL can be compiled and installed with a CPU version only even on CUDA capable machines by setting ` CPU_ONLY=1 ` as an environment variable.
41
+
46
42
* OPTIONAL*
47
43
For tree visualization make sure graphviz is installed before compilation.
48
44
Original file line number Diff line number Diff line change @@ -7,8 +7,4 @@ Install GBRL via pip:
7
7
8
8
pip install gbrl
9
9
10
- CPU only version is installed with the following command:
11
-
12
- .. code-block :: console
13
-
14
- CPU_ONLY=1 pip install gbrl
10
+ GBRL can be compiled and installed with a CPU version only even on CUDA capable machines by setting `CPU_ONLY=1 ` as an environment variable.
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ def build_extension(self, ext):
59
59
cmake_args .append ('-DCMAKE_VERBOSE_MAKEFILE:BOOL=ON' )
60
60
build_args .append ('--verbose' )
61
61
62
- if ('CPU_ONLY' not in os .environ and platform .system () != 'Darwin' ) or ('CPU_ONLY' in os .environ and os .environ ['CPU_ONLY' ] = = '1' ):
62
+ if ('CPU_ONLY' not in os .environ and platform .system () != 'Darwin' ) or ('CPU_ONLY' in os .environ and os .environ ['CPU_ONLY' ] ! = '1' ):
63
63
cmake_args .append ('-DUSE_CUDA=ON' )
64
64
65
65
build_temp = self .build_temp
You can’t perform that action at this time.
0 commit comments