Skip to content

Commit

Permalink
Update libtorch path to be more generic for user guidance.
Browse files Browse the repository at this point in the history
  • Loading branch information
jatkinson1000 committed Jul 1, 2024
1 parent b803bfd commit 1e5e365
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pages/troubleshooting.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@ Finally you will need to add `-G "NMake Makefiles"` to the `cmake` command in th
[regular install instructions](doc/page/cmake.html).<br>
So the basic command to build from CMD becomes:
```
cmake -G "NMake Makefiles" -DCMAKE_PREFIX_PATH="C:\Users\<path-to-libtorch>\libtorch-win-shared-with-deps-2.1.0+cpu\libtorch" -DCMAKE_BUILD_TYPE=Release ..
cmake -G "NMake Makefiles" -DCMAKE_PREFIX_PATH="C:\Users\<path-to-libtorch-download>\libtorch" -DCMAKE_BUILD_TYPE=Release ..
cmake --build .
cmake --install .
```

If using powershell the setvars and build commands become:
```
cmd /k '"C:\Program Files (x86)\Intel\oneAPI\setvars.bat" && powershell'
cmake -G "NMake Makefiles" -DCMAKE_PREFIX_PATH="C:\Users\<path-to-libtorch>\libtorch-win-shared-with-deps-2.1.0+cpu\libtorch" -DCMAKE_BUILD_TYPE=Release ..
cmake -G "NMake Makefiles" -DCMAKE_PREFIX_PATH="C:\Users\<path-to-libtorch-download>\libtorch" -DCMAKE_BUILD_TYPE=Release ..
cmake --build .
cmake --install .
```
Expand Down

0 comments on commit 1e5e365

Please sign in to comment.