@@ -59,8 +59,6 @@ to build Triton on a platform that is not listed here.
5959
6060* [ Ubuntu 22.04, x86-64] ( #building-for-ubuntu-2204 )
6161
62- * [ Windows 10, x86-64] ( #building-for-windows-10 )
63-
6462If you are developing or debugging Triton, see [ Development and
6563Incremental Builds] ( #development-and-incremental-builds ) for information
6664on how to perform incremental build.
@@ -261,90 +259,6 @@ For a given version of Triton you can attempt to build with
261259non-supported versions of TensorRT but you may have build or execution
262260issues since non-supported versions are not tested.
263261
264- ## Building for Windows 10
265-
266- For Windows 10, build.py supports both a Docker build and a non-Docker
267- build in a similar way as described for [ Ubuntu] ( #building-for-ubuntu-2204 ) . The primary
268- difference is that the minimal/base image used as the base of
269- Dockerfile.buildbase image can be built from the provided
270- [ Dockerfile.win10.min] ( https://github.com/triton-inference-server/server/blob/main/Dockerfile.win10.min )
271- file as described in [ Windows 10 "Min" Image] ( #windows-10-min-image ) . When running build.py
272- use the --image flag to specify the tag that you assigned to this
273- image. For example, --image=base,win10-py3-min.
274-
275- ### Windows and Docker
276-
277- Depending on your version of Windows 10 and your version of Docker you
278- may need to perform these additional steps before any of the following
279- step.
280-
281- * Set your Docker to work with "Windows containers". Right click on
282- the whale icon in the lower-right status area and select "Switch to
283- Windows containers".
284-
285- ### Windows 10 "Min" Image
286-
287- The "min" container describes the base dependencies needed to perform
288- the Windows build. The Windows min container is
289- [ Dockerfile.win10.min] ( https://github.com/triton-inference-server/server/blob/main/Dockerfile.win10.min ) .
290-
291- Before building the min container you must download the appropriate
292- cuDNN and TensorRT versions and place them in the same directory as
293- Dockerfile.win10.min.
294-
295- * For cuDNN the CUDNN_VERSION and CUDNN_ZIP arguments defined in
296- Dockerfile.win10.min indicate the version of cuDNN that your should
297- download from https://developer.nvidia.com/rdp/cudnn-download .
298-
299- * For TensorRT the TENSORRT_VERSION and TENSORRT_ZIP arguments defined
300- in Dockerfile.win10.min indicate the version of TensorRT that your
301- should download from
302- https://developer.nvidia.com/nvidia-tensorrt-download .
303-
304- After downloading the zip files for cuDNN and TensorRT, you build the
305- min container using the following command.
306-
307- ``` bash
308- $ docker build -t win10-py3-min -f Dockerfile.win10.min .
309- ```
310-
311- ### Build Triton Server
312-
313- Triton is built using the build.py script. The build system must have
314- Docker, Python3 (plus pip installed * docker* module) and git installed
315- so that it can execute build.py and perform a docker build. By
316- default, build.py does not enable any of Triton's optional features
317- and so you must enable them explicitly. The following build.py
318- invocation builds all features and backends available on windows.
319-
320- ``` bash
321- python build.py --cmake-dir=< path/to/repo> /build --build-dir=/tmp/citritonbuild --no-container-pull --image=base,win10-py3-min --enable-logging --enable-stats --enable-tracing --enable-gpu --endpoint=grpc --endpoint=http --repo-tag=common:< container tag> --repo-tag=core:< container tag> --repo-tag=backend:< container tag> --repo-tag=thirdparty:< container tag> --backend=ensemble --backend=tensorrt:< container tag> --backend=onnxruntime:< container tag> --backend=openvino:< container tag> --backend=python:< container tag>
322- ```
323-
324- If you are building on * main* branch then ` <container tag> ` will
325- default to "main". If you are building on a release branch then
326- ` <container tag> ` will default to the branch name. For example, if you
327- are building on the r24.12 branch, ` <container tag> ` will default to
328- r24.12. Therefore, you typically do not need to provide `<container
329- tag>` at all (nor the preceding colon). You can use a different
330- ` <container tag> ` for a component to instead use the corresponding
331- branch/tag in the build. For example, if you have a branch called
332- "mybranch" in the
333- [ onnxruntime_backend] ( https://github.com/triton-inference-server/onnxruntime_backend )
334- repo that you want to use in the build, you would specify
335- --backend=onnxruntime: mybranch .
336-
337- ### Extract Build Artifacts
338-
339- When build.py completes, a Docker image called * tritonserver* will
340- contain the built Triton Server executable, libraries and other
341- artifacts. Windows containers do not support GPU access so you likely
342- want to extract the necessary files from the tritonserver image and
343- run them directly on your host system. All the Triton artifacts can be
344- found in /opt/tritonserver directory of the tritonserver image. Your
345- host system will need to install the CUDA, cuDNN, TensorRT and other
346- dependencies that were used for the build.
347-
348262## Building on Unsupported Platforms
349263
350264Building for an unsupported OS and/or hardware platform is
@@ -409,8 +323,8 @@ and cmake_build or the equivalent commands to perform a build.
409323
410324If you are [ building without Docker] ( #building-without-docker ) use the
411325CMake invocation steps in cmake_build to invoke CMake to set-up a
412- build environment where you can invoke make/msbuild.exe to incremental
413- build the Triton core, a backend, or a repository agent.
326+ build environment where you can invoke make to incremental build the Triton
327+ core, a backend, or a repository agent.
414328
415329### Development Builds With Docker
416330
@@ -423,8 +337,7 @@ agents.
423337
424338To perform an incremental build within the * tritonserver_buildbase*
425339container, map your source into the container and then run the
426- appropriate CMake and ` make ` (or ` msbuild.exe ` ) steps from cmake_build
427- within the container.
340+ appropriate CMake and ` make ` steps from cmake_build within the container.
428341
429342#### Development Build of Triton Core
430343
@@ -450,10 +363,9 @@ CMakeLists.txt file and source:
450363$ cmake <options> /server
451364```
452365
453- Then you can change directory into the build directory and run ` make `
454- (or ` msbuild.exe ` ) as shown in cmake_build. As you make changes to the
455- source on your host system, you can perform incremental builds by
456- re-running ` make ` (or ` msbuild.exe ` ).
366+ Then you can change directory into the build directory and run ` make ` as shown
367+ in cmake_build. As you make changes to the source on your host system, you can
368+ perform incremental builds by re-running ` make ` .
457369
458370#### Development Build of Backend or Repository Agent
459371
@@ -467,10 +379,8 @@ incremental builds to test those changes. Your source code is in
467379/home/me/tritonserver_backend. Run the * tritonserver_buildbase*
468380container and map your TensorRT backend source directory into the
469381container at /tensorrt_backend. Note that some backends will use
470- Docker as part of their build, and so the host's Docker registry must
471- be made available within the * tritonserver_buildbase* by mounting
472- docker.sock (on Windows use
473- -v\\ .\pipe\docker_engine:\\ .\pipe\docker_engine).
382+ Docker as part of their build, and so the host's Docker registry must be made
383+ available within the * tritonserver_buildbase* by mounting docker.sock.
474384
475385```
476386$ docker run -it --rm -v/var/run/docker.sock:/var/run/docker.sock -v/home/me/tensorrt_backend:/tensorrt_backend tritonserver_buildbase bash
@@ -487,10 +397,9 @@ CMakeLists.txt file and source:
487397$ cmake <options> /tensorrt_backend
488398```
489399
490- Then you can change directory into the build directory and run ` make `
491- (or ` msbuild.exe ` ) as shown in cmake_build. As you make changes to the
492- source on your host system, you can perform incremental builds by
493- re-running ` make ` (or ` msbuild.exe ` ).
400+ Then you can change directory into the build directory and run ` make ` as shown
401+ in cmake_build. As you make changes to the source on your host system, you can
402+ perform incremental builds by re-running ` make ` .
494403
495404### Building with Debug Symbols
496405
0 commit comments