From 405d75a1a1a6ff03ebfa735f489fb98d3c6f7a73 Mon Sep 17 00:00:00 2001 From: Nat Kershaw Date: Tue, 2 Apr 2024 15:19:09 -0700 Subject: [PATCH] Add --ort_home to the build instructions --- docs/genai/howto/build-from-source.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/genai/howto/build-from-source.md b/docs/genai/howto/build-from-source.md index 99565f47d7aef..77a1d7567cdc3 100644 --- a/docs/genai/howto/build-from-source.md +++ b/docs/genai/howto/build-from-source.md @@ -26,7 +26,7 @@ cd onnxruntime-genai ## Install ONNX Runtime -By default, the onnxruntime-genai build expects to find the ONNX Runtime include and binaries in a folder called `ort` in the root directory of onnxruntime-genai. You can put the ONNX Runtime files in a different location and specify this location to the onnxruntime-genai build. These instructions use ORT_HOME as the location. +By default, the onnxruntime-genai build expects to find the ONNX Runtime include and binaries in a folder called `ort` in the root directory of onnxruntime-genai. You can put the ONNX Runtime files in a different location and specify this location to the onnxruntime-genai build. These instructions use `ORT_HOME` as the location. ### Option 1: Install from release @@ -50,7 +50,7 @@ Extract the nuget package. tar xvf Microsoft.ML.OnnxRuntime.1.18.0-dev-20240322-0323-ca825cb6e6.nupkg ``` -Copy the include and lib files into . +Copy the include and lib files into `ORT_HOME`. On Windows @@ -75,14 +75,14 @@ git clone https://github.com/microsoft/onnxruntime.git cd onnxruntime ``` -Create include and lib folders in the ORT_HOME directory +Create include and lib folders in the `ORT_HOME` directory ```bash mkdir /include mkdir /lib ``` -Build from source and copy the include and libraries into ORT_HOME +Build from source and copy the include and libraries into `ORT_HOME` On Windows @@ -106,7 +106,7 @@ cp build/Linux/RelWithDebInfo/libonnxruntime*.so* /lib ```bash cd .. -python build.py +python build.py [--ort_home ] ``` ### Build for CUDA @@ -115,7 +115,7 @@ These instructions assume you already have CUDA installed. ```bash cd .. -python build.py --cuda_home +python build.py --cuda_home [--ort_home ] ``` ### Build for DirectML @@ -137,7 +137,7 @@ copy Microsoft.AI.DirectML.1.13.1\bin\x64-win\DirectML.dll lib After the extra files have been copied into , build onnxruntime-genai as follows: ```bash -python build.py --use_dml +python build.py --use_dml [--ort_home ] ```