Properly use cmake variable in ONNXRuntime (#15776)
Co-authored-by: UltralyticsAssistant <web@ultralytics.com>
This commit is contained in:
parent
08f30c4033
commit
98fcd14142
2 changed files with 16 additions and 0 deletions
|
|
@ -82,6 +82,19 @@ Note (2): Due to ONNX Runtime, we need to use CUDA 11 and cuDNN 8. Keep in mind
|
|||
cmake ..
|
||||
```
|
||||
|
||||
**Notice**:
|
||||
|
||||
If you encounter an error indicating that the `ONNXRUNTIME_ROOT` variable is not set correctly, you can resolve this by building the project using the appropriate command tailored to your system.
|
||||
|
||||
```console
|
||||
# compiled in a win32 system
|
||||
cmake -D WIN32=TRUE ..
|
||||
# compiled in a linux system
|
||||
cmake -D LINUX=TRUE ..
|
||||
# compiled in an apple system
|
||||
cmake -D APPLE=TRUE ..
|
||||
```
|
||||
|
||||
5. Build the project:
|
||||
|
||||
```console
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue