From 92cbb4249d0d788e32b54d7cf0d98ba5759fb527 Mon Sep 17 00:00:00 2001 From: "Nat Kershaw (MSFT)" Date: Tue, 9 Apr 2024 19:12:53 -0700 Subject: [PATCH] Improve build instructions (#20251) --- docs/genai/howto/build-from-source.md | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/docs/genai/howto/build-from-source.md b/docs/genai/howto/build-from-source.md index d95b4b8c7e..73c82b2936 100644 --- a/docs/genai/howto/build-from-source.md +++ b/docs/genai/howto/build-from-source.md @@ -34,7 +34,7 @@ These instructions are for the Linux GPU build of ONNX Runtime. Replace `linux-g ```bash cd -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 . @@ -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 \include -copy build\Windows\Debug\Debug\*.dll \lib +copy build\Windows\Release\Release\*.dll \lib +copy build\Windows\Release\Release\onnxruntime.lib \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 /include -cp build/Linux/RelWithDebInfo/libonnxruntime*.so* /lib +cp build/Linux/Release/libonnxruntime*.so* /lib ``` ## Build onnxruntime-genai @@ -133,4 +134,4 @@ _Coming soon_ ### Install C/C++ header file and library -_Coming soon_ \ No newline at end of file +_Coming soon_