Skip to content

Commit

Permalink
Improve build instructions (#20251)
Browse files Browse the repository at this point in the history
  • Loading branch information
natke authored Apr 10, 2024
1 parent 4a0a4ce commit 92cbb42
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions docs/genai/howto/build-from-source.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ These instructions are for the Linux GPU build of ONNX Runtime. Replace `linux-g

```bash
cd <ORT_HOME>
curl -L https://github.com/microsoft/onnxruntime/releases/download/v1.17.0/onnxruntime-linux-x64-gpu-1.17.1.tgz
curl -L https://github.com/microsoft/onnxruntime/releases/download/v1.17.1/onnxruntime-linux-x64-gpu-1.17.1.tgz
tar xvzf onnxruntime-linux-x64-gpu-1.17.1.tgz
mv onnxruntime-linux-x64-gpu-1.17.1/include .
mv onnxruntime-linux-x64-gpu-1.17.1/lib .
Expand Down Expand Up @@ -87,17 +87,18 @@ Build from source and copy the include and libraries into `ORT_HOME`
On Windows

```cmd
build.bat --build_shared_lib --skip_tests --parallel [--use_cuda]
build.bat --build_shared_lib --skip_tests --parallel [--use_cuda] --config Release
copy include\onnxruntime\core\session\onnxruntime_c_api.h <ORT_HOME>\include
copy build\Windows\Debug\Debug\*.dll <ORT_HOME>\lib
copy build\Windows\Release\Release\*.dll <ORT_HOME>\lib
copy build\Windows\Release\Release\onnxruntime.lib <ORTHOME>\lib
```

On Linux

```cmd
./build.sh --build_shared_lib --skip_tests --parallel [--use_cuda]
./build.sh --build_shared_lib --skip_tests --parallel [--use_cuda] --config Release
cp include/onnxruntime/core/session/onnxruntime_c_api.h <ORT_HOME>/include
cp build/Linux/RelWithDebInfo/libonnxruntime*.so* <ORT_HOME>/lib
cp build/Linux/Release/libonnxruntime*.so* <ORT_HOME>/lib
```

## Build onnxruntime-genai
Expand Down Expand Up @@ -133,4 +134,4 @@ _Coming soon_

### Install C/C++ header file and library

_Coming soon_
_Coming soon_

0 comments on commit 92cbb42

Please sign in to comment.