You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`-D CUDA_V=(\|10.2\|11.1\|none)`|`none`| Download LibTorch for a CUDA version (`none` = download CPU version). |
92
+
|`-D CUDA_V=(10.2\|11.1\|11.3\|none)`|`none`| Download LibTorch for a CUDA version (`none` = download CPU version). |
93
+
|`-D LIBTORCH_DOWNLOAD_BUILD_TYPE=(Release\|Debug)`|`Release`| Determines which libtorch build type version to download (only relevant on **Windows**).|
93
94
|`-D DOWNLOAD_DATASETS=(OFF\|ON)`|`ON`| Download required datasets during build (only if they do not already exist in `pytorch-cpp/data`). |
94
95
|`-D CREATE_SCRIPTMODULES=(OFF\|ON)`|`OFF`| Create all required scriptmodule files for prelearned models / weights during build. Requires installed python3 with pytorch and torchvision. |
95
96
|`-D CMAKE_PREFIX_PATH=path/to/libtorch/share/cmake/Torch`|`<empty>`| Skip the downloading of LibTorch and use your own local version (see [Requirements](#requirements)) instead. |
96
-
|`-D CMAKE_BUILD_TYPE=(Release\|Debug)`|`<empty>`(`Release` when downloading LibTorch on Windows) | Set the build type (`Release` = compile with optimizations).|
97
+
|`-D CMAKE_BUILD_TYPE=(Release\|Debug\|...)`|`<empty>`| Determines the CMake build-type for single-configuration generators (see [CMake docs](https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html)).|
97
98
98
99
<details>
99
100
<summary><b>Example Linux</b></summary>
@@ -115,14 +116,14 @@ cmake -B build \
115
116
<summary><b>Example Windows</b></summary>
116
117
117
118
##### Aim
118
-
* Automatically download LibTorch for CUDA 11.1 and all necessary datasets.
119
+
* Automatically download LibTorch for CUDA 11.3 (Release version) and all necessary datasets.
0 commit comments