-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New Kafka Endpoint #4774
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
fpetrini15
wants to merge
2,740
commits into
main
Choose a base branch
from
fpetrini-kafka
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
New Kafka Endpoint #4774
Changes from all commits
Commits
Show all changes
2740 commits
Select commit
Hold shift + click to select a range
e1fea85
remove java client build from sdk
jbkyang-nvi bd40000
Remove java client examples install
dzier 2bbec79
Update jetson docs for Jetpack 22.03 (#4120)
095a44e
Add test case for shutdown (#4143)
GuanLuo 0d87c41
Enable capi for pa (#4161)
krishung5 43e5076
Use correct error message in L0_lifecycle(#4156)
krishung5 6f3519a
Update docs for ORT support on Jetson (#4157) (#4167)
b7561f9
Update for 22.03 model gen (#4173)
daf1c8f
Move Java client examples to build (#4116)
jbkyang-nvi aa73af1
Add metric API unit test to L0_metrics (#4163)
GuanLuo 25c6fec
Set http address for metrics when http service is disable (#4175)
krishung5 721ecb5
Record INFER_RESPONSE_COMPLETE only at the first callback (#4176)
tanmayv25 464629e
Add testing for the lifetime of BLS tensors (#4147)
Tabrizian 3145219
Add pointer to 'raw binary data' documentation (#4182)
77b7614
Add test for optional input in Python backend (#4164)
Tabrizian 17aa8ca
Add Perf Analyzer unit tests CI test (#4155)
matthewkotila 312840d
Fix MLFlow plugin. Add test (#4186)
GuanLuo 453333e
Customize backend support for perf analyzer (#4166)
krishung5 93ab8f7
Update test to use new option (#4190)
matthewkotila 3fb8d41
Add Model Register API test (#4191)
the-david-oy 3c89895
Fix build.py to accept gpu-base image for CPU only (#4208)
a48f47e
Update build docs for --image,gpu-base (#4209)
9278504
Update build.py to generate scripts containing build commands (#4174)
905c5f1
Fix compose.py to allow configurable gpu-min container (#4210)
22c40ce
updated qa tests to expect the new max_batch_size (#4092)
nv-kmcgill53 127df4f
Test Documentation Rendering (#4218)
the-david-oy 3a11151
Add testing for incorrect shape argument in PA (#4192)
Tabrizian 3c535ef
Fix L0_backend_python (#4207)
Tabrizian c45d3b3
Update master to track development for 2.22.0 / r22.05
mc-nv f80f203
Add documentation for incremental builds (#4222)
8110414
Add Metric API documentation and update L0_backend_identity CI test (…
rmccorm4 e86f6a9
Add response cache unit test to CI (#4224)
rmccorm4 f7fb0c3
Add 'TF-TRT' and `ORT-TRT' keywords to docs for searchability (#4228)
rmccorm4 a226869
Fix minor typos introduced by https://github.com/triton-inference-ser…
f42aae9
Add trace test for C++ client (#4216)
krishung5 093ec76
Fix instance type to CPU for optional python model (#4230)
337c5a4
Update readme to include additional resources
dzier 6e4aeb4
Cat SERVER_LOG when failing to grep it in L0_backend_tutorial (#4252)
rmccorm4 dcd3a7d
Start using tag reference for 'vcpkg'
mc-nv a4de42b
Add `load-model=*` tests and documentation (#4256)
rmccorm4 837cdc8
Add argument validation tests (#4180)
Tabrizian 43b6e0c
Document TFS and TS support in perf_analyzer (#4258)
tanmayv25 891d4bb
Add white background to PNG images
dzier 82c2ec9
Merge PersistentBackendManager into TritonBackendManager (#4268)
5124283
Fix compose.py to use updated container_versions() function from buil…
dc05696
Update build.py to expose TRITON_ENABLE_METRICS to backends (#4282)
GuanLuo 71782b0
Removing default memory limits for Windows container
mc-nv df733ec
Add link to model warmup protobuf (#4296)
rmccorm4 d18bde6
Support model file override in HTTP/GRPC server. Add documentation. A…
GuanLuo 57ed647
Add TYPE_BF16 scaffolding (#4295)
rmccorm4 27b93ba
Improve Server API (C API) documentation (#4304)
064c585
Update README and docs post-22.04 release
mc-nv 4274d13
Documentation updates for Server API (C API) (#4312)
a6504a3
Fix expected test count on jetson (#4314)
Tabrizian 74eb389
Fix typo (#4317)
382bdaa
GPG CUDA Linux Repository Key Rotation
mc-nv 4e57c69
Add test for decoupled API in Python backend (#4290)
Tabrizian 0ac0c21
Update README and versions for 22.04 branch
mc-nv a04eeb9
Fix CPU only failure for pytorch backend (#4227)
e04b52a
Update copyright period
mc-nv 939912d
Add unit tests for transfer-encoding HTTP headers (#4324)
rmccorm4 72f0d63
Fix autocomplete link (#4336)
rmccorm4 e96097a
Add option to force create new channel (#4325)
jbkyang-nvi aa38255
Add a link to the Python backend model ensemble example (#4309)
Tabrizian 0011efa
Add tests for sync/async BLS requests in the decoupled mode
Tabrizian 99c87dc
Improve decoupled API test to cover flags argument
Tabrizian 5be5314
Add python decoupled example tests (#4327)
tanmayv25 4bc62a4
Add test for ensemble config contains backend (#4318)
GuanLuo ae88355
Shift copying of NCCL for TF2 backend into build.py (#4337)
0b09e8e
Fix test failures on Jetpack (#4316) (#4342)
3e8c7bc
Add GPU bls tests for decoupled API
Tabrizian 556d9cf
Add note on instance_groups for ensemble models (#4349)
rmccorm4 cffa05c
Update ORT to 1.11.1 (#4347)
pranavsharma 859c8cd
Enable Triton for SageMaker MME mode (#4181)
nikhil-sk d4bfcfd
Add testing for PyTorch string I/O (#4315)
b265f06
Improve GRPC load model with file override to accept file binary (#4338)
GuanLuo 10a6182
Fix b64 include: it is used even GPU support is disabled (#4357)
GuanLuo 53a0bb1
Add new example clients to L0_grpc (#4343)
rmccorm4 563365d
Disable decoupled API tests on jetson (#4359)
Tabrizian 5c9dfd2
Fixing issue with 'apt update' utility caused by GPG key rotation. Th…
mc-nv db0ceb0
Improve documentation on decoupled backends (#4354)
tanmayv25 95b58ff
Move Java API Prerelease Into Main (#4289)
the-david-oy 1a911e9
Update master to track development for 2.23.0 / r22.06
mc-nv 53bc802
Add copyrights to test data for Java resnet tests (#4370)
jbkyang-nvi 85a0a39
Fix typo in extension_classfication.md (#3943)
zhoukaidev df02d01
Add L0_jave_memory_growth logging on failure (#4381)
GuanLuo a5638a6
Fix trace_timestamps_ memory growth in GRPC server (#4383)
rmccorm4 4717794
Add warmup failure case in L0_warmup (#4382)
GuanLuo 0f1d027
Add L0_libtorch_io_names test and update docs for new Naming Conventi…
9253f3f
Moving to recomended approach with using cuda-keyring package
mc-nv 41ae518
Improve error message for shared memory manager (#4417)
Tabrizian 5af4cdb
Add section on cc_model_filenames to model config docs (#4403)
rmccorm4 2289381
Improve README (#4419)
dzier 09adeb4
Add testing for GPU support in decoupled (#4377)
Tabrizian cd1f457
Re-throw certain specific OOM errors as 507 for SageMaker MME + repo …
nikhil-sk a29155e
Enable nvtx markers in pytorch backend (#4424)
tanmayv25 9eb8734
Remove CUDA Binding Dependency for Java Binding Tests (#4428)
the-david-oy d6734ef
Fix long-running Java memory growth test (#4401)
the-david-oy 196002c
Add triton_c_api to perf tests (#4420)
rmccorm4 063d440
Removing image layer
mc-nv 21f3545
Update NGC versions post-22.05 release
mc-nv 3257e00
Fix L0_copyrights (#4446)
Tabrizian 58bb989
Remove BLS async tests from decoupled models (#4439)
Tabrizian 03c466b
Add command line option to set logging format (#4423)
GuanLuo 318a599
Add testing for python model api for auto-complete (#4322)
krishung5 17d3d62
Autocomplete is Used by Triton Supported Backends (#4395)
nv-kmcgill53 a27c32e
Correct number of resource copies for R4 (#4455)
winstonhic 170e2f7
use job ID in cloud storage test to ensure exclusive usage (#4458)
GuanLuo 788389a
Fix issue with new MinIO release (#4459)
GuanLuo b63af3d
Remove beta quality from python decoupled models (#4463)
tanmayv25 572d3fe
Fix L0_model_config for new autocomplete functionality (#4461)
nv-kmcgill53 3b2e2b4
Updated L0_model_config for TensorRT autocomplete changes (#4464)
nv-kmcgill53 d2d75b2
Improve L0_metrics stability (#4462)
GuanLuo 4b1198b
Fix L0_backend_python_jetson (#4465)
krishung5 794297e
Build testing custom op with backward compatibility (#4468)
GuanLuo 154caf3
Add test for different variance of ONNX flavor (#4469)
GuanLuo 5839233
fix error when deploying a model from mlflow (#4413)
Rusteam f369933
Fix L0_output_validation test (#4472)
Tabrizian 307d303
Temporary fix for protobuf.
mc-nv dea7a39
Add conda to the build container (#4476)
Tabrizian 124b6d2
Fix copyright and test count (#4493)
Tabrizian fbbb859
Fix invalid read in multi_server.cc (#4496)
GuanLuo 2f55a5f
Update master to track development for 2.24.0 / 22.07
mc-nv 78fbbdc
Fix link (#4498)
krishung5 1345415
Tests for setting dynamic batching scheduler during python autocomple…
nv-kmcgill53 1148928
Fix Trace Documentation Rendering (#4514)
the-david-oy 3250504
Add 'count' test in L0_warmup (#4501)
GuanLuo 838e7f8
Expose --model-load-thread-count for model load thread pool (no boost…
rmccorm4 1d2519c
Protect shared_memory_map_ from concurrent access (#4518)
kthui 13f5532
Updated documentation and tests regarding default CPU model instance…
nv-kmcgill53 6c1d501
Add L0_backend_bls test (#4494)
krishung5 40a54ef
Update README with NVAIE messaging
dzier f88bc5a
Fix L0_build_variants (#4539)
Tabrizian 421ce2d
Increased timeout from 3600 to 4000 (#4553)
ac0a427
Don't infer DALI_VERSION from env variable (#4565)
szalpal 9570dd1
Add http asyncio python client (#4551)
kthui 4450fd6
Add grpc asyncio python client (#4546)
kthui 265e3fc
add pa ground truth (#4552)
debermudez 4ba0b39
Update README and versions for 22.06 branch
mc-nv c1c1634
Fix undefined name: utils --> pb_utils (#4576)
cclauss 04ba260
Fix undefined name: sys used on lines 242, 251, 260, 267 (#4577)
cclauss 4d9f156
Fix L0_perf_nomodel (#4586)
Tabrizian f765bab
Fix unstable collision test in L0_lifecycle (#4568)
GuanLuo c1c931b
Fix L0_model_config (#4588)
nv-kmcgill53 9a389e4
Fix unescaped newline, use comma instead for simplicity, add -e to av…
rmccorm4 62cfcca
Autoformatting (#4596)
the-david-oy 6c06ca5
Added python backend to L0-batcher (#4564)
fpetrini15 a067e11
Add documentation regarding GRPC streaming use case (#4575)
tanmayv25 cb27a22
Fix L0_dyna_sequence_batcher and L0_dyna_implicit_state (#4602)
tanmayv25 7291eb7
Add testing for PyTorch string I/O (#4574)
krishung5 f457476
Autocomplete Robustness Changes (#4607)
nv-kmcgill53 efcf584
Add negative test to check response cache fails with decoupled mode (…
rmccorm4 2a7e21e
Prefix Logs with Request ID (#4484)
the-david-oy f974b63
Fix for optional secrets.token in deploy/fleetcommand helm chart (#3809)
treyd 63e713f
Sagemaker invoke 507 (#4543)
nikhil-sk 887c875
cat server log on failure (#4621)
rmccorm4 3d37f89
Documentation Update: Fix outdated Helm chart instructions for promet…
GuanLuo 10e2709
Fix the max_batch_size specification in benchmark tests (#4623)
tanmayv25 81a9cc7
Update default branch to track development for 2.25.0 / 22.08
mc-nv eaf5758
Resolve disable-auto-complete-config and strict-model-config conflict…
nv-kmcgill53 8ec9949
Update the new auto-complete-config behavior (#4632)
tanmayv25 e5e6a61
Added python backend to L0_sequence_batcher (#4589)
fpetrini15 91e93b9
Fix BLS tests (#4645)
Tabrizian 3348da0
Refactor repository (#4595)
the-david-oy 4bb6c92
Update model lifecycle test for edge case (#4612)
GuanLuo 20f67e8
Fix expected byte size calculation (#4633)
kthui 6ffde66
Fix L0_decoupled (#4649)
Tabrizian 205723f
fixed strict_model_config not being set for disable-auto-complete-con…
nv-kmcgill53 d4150c2
Add an example to demonstrate shape tensor handling (#4634)
tanmayv25 7278211
Clarify CLA process for individual contributors (#4652)
tanmayv25 2d893e1
Fix link (#4642)
krishung5 ef95683
Fix copyrights and formatting (#4664)
jbkyang-nvi fe8e84f
Replace perf_client usage with unit tests WAR (#4670)
rmccorm4 070a887
Initial doc on mode-load-thread-count (#4677)
rmccorm4 22c2d2f
Add testing for PA optional inputs (#4613)
matthewkotila 896995c
Move tensorflow default version from 1 to 2 (#4601)
krishung5 88d5a8c
Add a note about string data type when using base64 (#4676)
Tabrizian 56d7f1e
Add new option to run stress and memory growth tests longer (#3889)
GuanLuo 799f6ec
Check errors on startup models and condense lifecycle test (#4681)
rmccorm4 e69d7b4
Fix L0_backend_python (#4680)
Tabrizian 737c219
Add Tracing to Perf Analyzer GRPC/HTTP Client (#4684)
the-david-oy a1ed241
Lifecycle test fixes (#4686)
rmccorm4 9405d4d
Fix PA test stability (#4694)
matthewkotila 18b0c11
Add test coverage to check if output tensor is on GPU for Python Back…
krishung5 5945ddb
Support bfloat16 in client (#4705)
the-david-oy 75ba062
Improve test coverage for init args (#4709)
krishung5 7a5bcb1
Escape double quote for trace JSON byte tensor data output (#4717)
kthui 11e5f8c
Modify protobuf usage to reflect version upgrade (#4699)
GuanLuo 59d98ad
Update README and versions for 22.07 branch
mc-nv a4c2433
Enable ORT 1.12.0 support
mc-nv b6c26be
Add testing for tf ops initialization (#4624)
mc-nv 714a79e
fix formatting and L0 copyright
jbkyang-nvi 22107aa
Update README for 22.07 release
mc-nv ed8b209
Add end-to-end config tuning doc (#4706)
rmccorm4 e2c8593
Add cmdline option to set GPU limit for loading (#4707)
GuanLuo 2955fdd
Fix dead links (#4738)
Tabrizian 8898071
Break response cache doc into sections, add note about min/max cache …
rmccorm4 dcca854
Fix model generation for tf parameters (#4741)
Tabrizian 1c74300
Fix error handling for TritonJson APIs (#4723)
krishung5 b17698f
Backend Autocompletion of Custom Backends (#4740)
the-david-oy 60b72eb
changed L0_infer timeout to allow for slower jetson machines (#4746)
nv-kmcgill53 761e900
Add cloud storage credential management (#4695)
kthui b0e024e
Updating scripts to accept default variables
mc-nv 01817a0
adding missed model directory
mc-nv 90b408b
Excluding 'qa/L0_trt_dla_jetson/trt_dla_model_store' modelsf form ver…
mc-nv 2a8c71e
Allow multiple servers to bind to the same http/grpc port (#4732)
krishung5 151e474
Fix instance group setting link (#4755)
Tabrizian 5a24bed
Server changes for new logging extension (#4640)
fpetrini15 75e06c2
Update master to track development for 2.26.0 / r22.09
mc-nv 638f850
Add bls_undefined model to model repo and add to c_api test (#4758)
debermudez e8980c7
Add set +e and -e to the capi test addition (#4762)
debermudez d16ce93
Add backend support matrices for different platforms (#4760)
tanmayv25 de6a92b
fix: update link to backend_platform_support_matrix.md (#4771)
theHamsta 171b1e8
Remove beta tag from response cache doc (#4768)
rmccorm4 916f312
Fix MacOS ARM docker building (#4770)
alxmamaev 1ea74c0
Removing unused peace of code
mc-nv 795a128
Load Shared Libraries Dynamically (#4793)
the-david-oy 1587dd3
Migrate OV to 2022.1 (#4751)
kthui e723279
Remove tagged openvino backend (#4805)
kthui 32f9ca6
Increase SERVER_TIMEOUT for L0_infer_valgrind (#4693)
krishung5 68f9a5b
Add some version dirs in L0_model_config for deferred validation. Rev…
GuanLuo 1b3f651
Fix inferentia gen_pytorch_model (#4794)
kthui a30f51c
Add testing for Python backend logging (#4802)
fpetrini15 ec6e1a3
Update LICENSE (#4692)
masguit42 221c73b
Update README and versions for 22.08 branch
mc-nv fe576bc
Add CPU metrics CLI options and docs (#4803)
rmccorm4 feb1613
Add testing to ensure grpc time is not zeroed out (#4823)
debermudez 3bd8d70
Add environment variable in SM entrypoint to specify TF version (#4835)
nikhil-sk d8a45e1
Refactor L0_infer for easier usage (#4736)
jbkyang-nvi 6274b2a
Fix L0_perf_resnet script (#4852)
GuanLuo b10480b
[Temporary Fix] TensorRT Plugin Generation (#4859)
the-david-oy 6070448
Add OpenVINO autocomplete tests (#4830)
kthui 7d39ad7
restructured user guide (#4773)
tanayvarshney 1a2c498
Fix broken links after refactor (#4861)
rmccorm4 0e1257c
Update master to track development for 2.27.0 / r22.10
mc-nv c787771
Uplift GO version
mc-nv a68c52d
Install kafka lib
fpetrini15 85c8661
Adding boost library
fpetrini15 b8763a4
New kafka files
fpetrini15 13ee61e
Intermediate Checkin
fpetrini15 ec3004b
Add Kakfa Option
fpetrini15 6859117
Container and compile changes
fpetrini15 b100633
Fix gitlab warnings
fpetrini15 7a51e50
Build kafka
fpetrini15 8a4e337
Cleanup
fpetrini15 6cbc2de
Restore http_server.cc
fpetrini15 55b6378
Adding comments
fpetrini15 2abddda
Manually adding back CPU Metrics flags
fpetrini15 ee6d02e
Review comments
fpetrini15 cfe9209
Pushing in case credentials expire
fpetrini15 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| --- | ||
| name: Bug report | ||
| about: Create a report to help us improve | ||
| title: '' | ||
| labels: '' | ||
| assignees: '' | ||
|
|
||
| --- | ||
|
|
||
| **Description** | ||
| A clear and concise description of what the bug is. | ||
|
|
||
| **Triton Information** | ||
| What version of Triton are you using? | ||
|
|
||
| Are you using the Triton container or did you build it yourself? | ||
|
|
||
| **To Reproduce** | ||
| Steps to reproduce the behavior. | ||
|
|
||
| Describe the models (framework, inputs, outputs), ideally include the model configuration file (if using an ensemble include the model configuration file for that as well). | ||
|
|
||
| **Expected behavior** | ||
| A clear and concise description of what you expected to happen. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| --- | ||
| name: Feature request | ||
| about: Suggest an idea for this project | ||
| title: '' | ||
| labels: '' | ||
| assignees: '' | ||
|
|
||
| --- | ||
|
|
||
| **Is your feature request related to a problem? Please describe.** | ||
| A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] | ||
|
|
||
| **Describe the solution you'd like** | ||
| A clear and concise description of what you want to happen. | ||
|
|
||
| **Describe alternatives you've considered** | ||
| A clear and concise description of any alternative solutions or features you've considered. | ||
|
|
||
| **Additional context** | ||
| Add any other context or screenshots about the feature request here. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,11 +1,3 @@ | ||
| /bazel-bin | ||
| /bazel-ci_build-cache | ||
| /bazel-genfiles | ||
| /bazel-trtserver | ||
| /bazel-out | ||
| /bazel-serving | ||
| /bazel-tensorflow | ||
| /bazel-tensorflow_serving | ||
| /bazel-testlogs | ||
| /bazel-tf | ||
| /bazel-workspace | ||
| /builddir | ||
| /.vscode | ||
| *.so |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,246 @@ | ||
| # Copyright 2020-2022, NVIDIA CORPORATION & AFFILIATES. All rights reserved. | ||
| # | ||
| # Redistribution and use in source and binary forms, with or without | ||
| # modification, are permitted provided that the following conditions | ||
| # are met: | ||
| # * Redistributions of source code must retain the above copyright | ||
| # notice, this list of conditions and the following disclaimer. | ||
| # * Redistributions in binary form must reproduce the above copyright | ||
| # notice, this list of conditions and the following disclaimer in the | ||
| # documentation and/or other materials provided with the distribution. | ||
| # * Neither the name of NVIDIA CORPORATION nor the names of its | ||
| # contributors may be used to endorse or promote products derived | ||
| # from this software without specific prior written permission. | ||
| # | ||
| # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY | ||
| # EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
| # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | ||
| # PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR | ||
| # CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, | ||
| # EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, | ||
| # PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR | ||
| # PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY | ||
| # OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
| # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | ||
| # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
|
|
||
| cmake_minimum_required(VERSION 3.18) | ||
|
|
||
| project(tritonserver LANGUAGES C CXX) | ||
|
|
||
| include(CMakeDependentOption) | ||
|
|
||
| set(TRITON_VERSION "0.0.0" CACHE STRING "The version of the Triton shared library" ) | ||
|
|
||
| option(TRITON_ENABLE_LOGGING "Include logging support in server" ON) | ||
| option(TRITON_ENABLE_STATS "Include statistics collections in server" ON) | ||
| option(TRITON_ENABLE_TRACING "Include tracing support in server" OFF) | ||
| option(TRITON_ENABLE_NVTX "Include NVTX support in server" OFF) | ||
| option(TRITON_ENABLE_GPU "Enable GPU support in server" ON) | ||
| option(TRITON_ENABLE_MALI_GPU "Enable Arm Mali GPU support in server" OFF) | ||
| set(TRITON_MIN_COMPUTE_CAPABILITY "6.0" CACHE STRING | ||
| "The minimum CUDA compute capability supported by Triton" ) | ||
| set(TRITON_EXTRA_LIB_PATHS "" CACHE PATH "Extra library paths for Triton Server build") | ||
|
|
||
| # Ensemble | ||
| option(TRITON_ENABLE_ENSEMBLE "Include ensemble support in server" OFF) | ||
|
|
||
| # Endpoints | ||
| option(TRITON_ENABLE_HTTP "Include HTTP API in server" ON) | ||
| option(TRITON_ENABLE_GRPC "Include GRPC API in server" ON) | ||
| option(TRITON_ENABLE_KAFKA "Include Kafka API in server" ON) | ||
| option(TRITON_ENABLE_SAGEMAKER "Include AWS SageMaker API in server" OFF) | ||
| option(TRITON_ENABLE_VERTEX_AI "Include Vertex AI API in server" OFF) | ||
|
|
||
| # Metrics | ||
| option(TRITON_ENABLE_METRICS "Include metrics support in server" ON) | ||
| option(TRITON_ENABLE_METRICS_GPU "Include GPU metrics support in server" ON) | ||
| option(TRITON_ENABLE_METRICS_CPU "Include CPU metrics support in server" ON) | ||
|
|
||
| # Cloud storage | ||
| option(TRITON_ENABLE_GCS "Include GCS Filesystem support in server" OFF) | ||
| option(TRITON_ENABLE_S3 "Include S3 Filesystem support in server" OFF) | ||
| option(TRITON_ENABLE_AZURE_STORAGE "Include Azure Storage Filesystem support in server" OFF) | ||
|
|
||
| # Need to know if TensorRT is available when building unit tests | ||
| option(TRITON_ENABLE_TENSORRT "Include TensorRT backend in server" OFF) | ||
|
|
||
| # ASAN | ||
| option(TRITON_ENABLE_ASAN "Build with address sanitizer" OFF) | ||
|
|
||
| # Repo tags | ||
| set(TRITON_THIRD_PARTY_REPO_TAG "main" CACHE STRING | ||
| "Tag for triton-inference-server/third_party repo") | ||
| set(TRITON_COMMON_REPO_TAG "main" CACHE STRING "Tag for triton-inference-server/common repo") | ||
| set(TRITON_CORE_REPO_TAG "main" CACHE STRING "Tag for triton-inference-server/core repo") | ||
| set(TRITON_BACKEND_REPO_TAG "main" CACHE STRING "Tag for triton-inference-server/backend repo") | ||
|
|
||
| # Third-party location | ||
| set(TRITON_THIRD_PARTY_INSTALL_PREFIX "${CMAKE_CURRENT_BINARY_DIR}/third-party" CACHE STRING "Location of third-party build") | ||
| set(TRITON_THIRD_PARTY_SRC_INSTALL_PREFIX "${CMAKE_CURRENT_BINARY_DIR}/third-party-src" CACHE STRING "Location of third-party source") | ||
|
|
||
| if(TRITON_ENABLE_METRICS AND NOT TRITON_ENABLE_STATS) | ||
| message(FATAL_ERROR "TRITON_ENABLE_METRICS=ON requires TRITON_ENABLE_STATS=ON") | ||
| endif() | ||
|
|
||
| if(TRITON_ENABLE_TRACING AND NOT TRITON_ENABLE_STATS) | ||
| message(FATAL_ERROR "TRITON_ENABLE_TRACING=ON requires TRITON_ENABLE_STATS=ON") | ||
| endif() | ||
|
|
||
| if (TRITON_ENABLE_METRICS_CPU AND NOT TRITON_ENABLE_METRICS) | ||
| message(FATAL_ERROR "TRITON_ENABLE_METRICS_CPU=ON requires TRITON_ENABLE_METRICS=ON") | ||
| endif() | ||
|
|
||
| if (TRITON_ENABLE_METRICS_GPU AND NOT TRITON_ENABLE_METRICS) | ||
| message(FATAL_ERROR "TRITON_ENABLE_METRICS_GPU=ON requires TRITON_ENABLE_METRICS=ON") | ||
| endif() | ||
|
|
||
| if (TRITON_ENABLE_METRICS_GPU AND NOT TRITON_ENABLE_GPU) | ||
| message(FATAL_ERROR "TRITON_ENABLE_METRICS_GPU=ON requires TRITON_ENABLE_GPU=ON") | ||
| endif() | ||
|
|
||
| if(TRITON_ENABLE_ASAN AND TRITON_ENABLE_GPU) | ||
| message(FATAL_ERROR "TRITON_ENABLE_ASAN=ON requires TRITON_ENABLE_GPU=OFF") | ||
| endif() | ||
|
|
||
| # | ||
| # Dependencies | ||
| # | ||
| include(FetchContent) | ||
|
|
||
| FetchContent_Declare( | ||
| repo-core | ||
| GIT_REPOSITORY https://github.com/triton-inference-server/core.git | ||
| GIT_TAG ${TRITON_CORE_REPO_TAG} | ||
| ) | ||
| FetchContent_Declare( | ||
| repo-third-party | ||
| GIT_REPOSITORY https://github.com/triton-inference-server/third_party.git | ||
| GIT_TAG ${TRITON_THIRD_PARTY_REPO_TAG} | ||
| ) | ||
|
|
||
| set(TRITON_CORE_HEADERS_ONLY OFF) | ||
|
|
||
| FetchContent_MakeAvailable(repo-third-party repo-core) | ||
|
|
||
| # | ||
| # Triton server executable and examples | ||
| # | ||
|
|
||
| # Need to use ExternalProject for our builds so that we can get the | ||
| # correct dependencies between Triton executable and the | ||
| # ExternalProject dependencies (found in the third_party repo) | ||
| include(ExternalProject) | ||
|
|
||
| # If CMAKE_TOOLCHAIN_FILE is set, propagate that hint path to the external | ||
| # projects. | ||
| set(_CMAKE_ARGS_CMAKE_TOOLCHAIN_FILE "") | ||
| if (CMAKE_TOOLCHAIN_FILE) | ||
| set(_CMAKE_ARGS_CMAKE_TOOLCHAIN_FILE "-DCMAKE_TOOLCHAIN_FILE:PATH=${CMAKE_TOOLCHAIN_FILE}") | ||
| endif() | ||
|
|
||
| # If VCPKG_TARGET_TRIPLET is set, propagate that hint path to the external | ||
| # projects. | ||
| set(_CMAKE_ARGS_VCPKG_TARGET_TRIPLET "") | ||
| if (VCPKG_TARGET_TRIPLET) | ||
| set(_CMAKE_ARGS_VCPKG_TARGET_TRIPLET "-DVCPKG_TARGET_TRIPLET:STRING=${VCPKG_TARGET_TRIPLET}") | ||
| endif() | ||
|
|
||
| # If OPENSSL_ROOT_DIR is set, propagate that hint path to the external | ||
| # projects with OpenSSL dependency. | ||
| set(_CMAKE_ARGS_OPENSSL_ROOT_DIR "") | ||
| if (OPENSSL_ROOT_DIR) | ||
| set(_CMAKE_ARGS_OPENSSL_ROOT_DIR "-DOPENSSL_ROOT_DIR:PATH=${OPENSSL_ROOT_DIR}") | ||
| endif() | ||
|
|
||
| # Location where protobuf-config.cmake will be installed varies by | ||
| # platform | ||
| if (WIN32) | ||
| set(_FINDPACKAGE_PROTOBUF_CONFIG_DIR "${TRITON_THIRD_PARTY_INSTALL_PREFIX}/protobuf/cmake") | ||
| else() | ||
| set(_FINDPACKAGE_PROTOBUF_CONFIG_DIR "${TRITON_THIRD_PARTY_INSTALL_PREFIX}/protobuf/lib/cmake/protobuf") | ||
| endif() | ||
|
|
||
| if (CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT) | ||
| set(TRITON_INSTALL_PREFIX ${CMAKE_CURRENT_BINARY_DIR}/install) | ||
| else() | ||
| set(TRITON_INSTALL_PREFIX ${CMAKE_INSTALL_PREFIX}) | ||
| endif() | ||
|
|
||
| set(TRITON_DEPENDS triton-core protobuf googletest) | ||
| if(${TRITON_ENABLE_GCS}) | ||
| set(TRITON_DEPENDS ${TRITON_DEPENDS} google-cloud-cpp) | ||
| endif() # TRITON_ENABLE_GCS | ||
| if(${TRITON_ENABLE_S3}) | ||
| set(TRITON_DEPENDS ${TRITON_DEPENDS} aws-sdk-cpp) | ||
| endif() # TRITON_ENABLE_S3 | ||
| if(${TRITON_ENABLE_AZURE_STORAGE}) | ||
| set(TRITON_DEPENDS ${TRITON_DEPENDS} azure-storage-cpplite) | ||
| endif() # TRITON_ENABLE_AZURE_STORAGE | ||
| if(${TRITON_ENABLE_HTTP} OR ${TRITON_ENABLE_METRICS} OR ${TRITON_ENABLE_SAGEMAKER} OR ${TRITON_ENABLE_VERTEX_AI}) | ||
| set(TRITON_DEPENDS ${TRITON_DEPENDS} libevent libevhtp) | ||
| endif() # TRITON_ENABLE_HTTP || TRITON_ENABLE_METRICS || TRITON_ENABLE_SAGEMAKER || TRITON_ENABLE_VERTEX_AI | ||
| if(${TRITON_ENABLE_GRPC}) | ||
| set(TRITON_DEPENDS ${TRITON_DEPENDS} grpc) | ||
| endif() # TRITON_ENABLE_GRPC | ||
| if(${TRITON_ENABLE_KAFKA}) | ||
| set(TRITON_DEPENDS ${TRITON_DEPENDS} modern-cpp-kafka) | ||
| endif() # TRITON_ENABLE_KAFKA | ||
|
|
||
| ExternalProject_Add(triton-server | ||
| PREFIX triton-server | ||
| SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/src" | ||
| BINARY_DIR "${CMAKE_CURRENT_BINARY_DIR}/triton-server" | ||
| CMAKE_CACHE_ARGS | ||
| -DProtobuf_DIR:PATH=${_FINDPACKAGE_PROTOBUF_CONFIG_DIR} | ||
| ${_CMAKE_ARGS_OPENSSL_ROOT_DIR} | ||
| ${_CMAKE_ARGS_CMAKE_TOOLCHAIN_FILE} | ||
| ${_CMAKE_ARGS_VCPKG_TARGET_TRIPLET} | ||
| -DGTEST_ROOT:PATH=${TRITON_THIRD_PARTY_INSTALL_PREFIX}/googletest | ||
| -DgRPC_DIR:PATH=${TRITON_THIRD_PARTY_INSTALL_PREFIX}/grpc/lib/cmake/grpc | ||
| -Dc-ares_DIR:PATH=${TRITON_THIRD_PARTY_INSTALL_PREFIX}/c-ares/lib/cmake/c-ares | ||
| -Dabsl_DIR:PATH=${TRITON_THIRD_PARTY_INSTALL_PREFIX}/absl/lib/cmake/absl | ||
| -Dnlohmann_json_DIR:PATH=${TRITON_THIRD_PARTY_INSTALL_PREFIX}/nlohmann_json/lib/cmake/nlohmann_json | ||
| -DLibevent_DIR:PATH=${TRITON_THIRD_PARTY_INSTALL_PREFIX}/libevent/lib/cmake/libevent | ||
| -Dlibevhtp_DIR:PATH=${TRITON_THIRD_PARTY_INSTALL_PREFIX}/libevhtp/lib/cmake/libevhtp | ||
| -Dstorage_client_DIR:PATH=${TRITON_THIRD_PARTY_INSTALL_PREFIX}/google-cloud-cpp/lib/cmake/storage_client | ||
| -Dazure-storage-cpplite_DIR:PATH=${TRITON_THIRD_PARTY_INSTALL_PREFIX}/azure-storage-cpplite | ||
| -Dgoogle_cloud_cpp_common_DIR:PATH=${TRITON_THIRD_PARTY_INSTALL_PREFIX}/google-cloud-cpp/lib/cmake/google_cloud_cpp_common | ||
| -DCrc32c_DIR:PATH=${TRITON_THIRD_PARTY_INSTALL_PREFIX}/crc32c/lib/cmake/Crc32c | ||
| -DAWSSDK_DIR:PATH=${TRITON_THIRD_PARTY_INSTALL_PREFIX}/aws-sdk-cpp/lib/cmake/AWSSDK | ||
| -Daws-cpp-sdk-core_DIR:PATH=${TRITON_THIRD_PARTY_INSTALL_PREFIX}/aws-sdk-cpp/lib/cmake/aws-cpp-sdk-core | ||
| -Daws-cpp-sdk-s3_DIR:PATH=${TRITON_THIRD_PARTY_INSTALL_PREFIX}/aws-sdk-cpp/lib/cmake/aws-cpp-sdk-s3 | ||
| -Daws-c-event-stream_DIR:PATH=${TRITON_THIRD_PARTY_INSTALL_PREFIX}/aws-sdk-cpp/lib/aws-c-event-stream/cmake | ||
| -Daws-c-common_DIR:PATH=${TRITON_THIRD_PARTY_INSTALL_PREFIX}/aws-sdk-cpp/lib/aws-c-common/cmake | ||
| -Daws-checksums_DIR:PATH=${TRITON_THIRD_PARTY_INSTALL_PREFIX}/aws-sdk-cpp/lib/aws-checksums/cmake | ||
| -DTRITON_THIRD_PARTY_REPO_TAG:STRING=${TRITON_THIRD_PARTY_REPO_TAG} | ||
| -DTRITON_COMMON_REPO_TAG:STRING=${TRITON_COMMON_REPO_TAG} | ||
| -DTRITON_CORE_REPO_TAG:STRING=${TRITON_CORE_REPO_TAG} | ||
| -DTRITON_BACKEND_REPO_TAG:STRING=${TRITON_BACKEND_REPO_TAG} | ||
| -DTRITON_EXTRA_LIB_PATHS:PATH=${TRITON_EXTRA_LIB_PATHS} | ||
| -DTRITON_ENABLE_ASAN:BOOL=${TRITON_ENABLE_ASAN} | ||
| -DTRITON_ENABLE_NVTX:BOOL=${TRITON_ENABLE_NVTX} | ||
| -DTRITON_ENABLE_TRACING:BOOL=${TRITON_ENABLE_TRACING} | ||
| -DTRITON_ENABLE_LOGGING:BOOL=${TRITON_ENABLE_LOGGING} | ||
| -DTRITON_ENABLE_STATS:BOOL=${TRITON_ENABLE_STATS} | ||
| -DTRITON_ENABLE_GPU:BOOL=${TRITON_ENABLE_GPU} | ||
| -DTRITON_ENABLE_MALI_GPU:BOOL=${TRITON_ENABLE_MALI_GPU} | ||
| -DTRITON_ENABLE_HTTP:BOOL=${TRITON_ENABLE_HTTP} | ||
| -DTRITON_ENABLE_KAFKA:BOOL=${TRITON_ENABLE_KAFKA} | ||
| -DTRITON_ENABLE_SAGEMAKER:BOOL=${TRITON_ENABLE_SAGEMAKER} | ||
| -DTRITON_ENABLE_VERTEX_AI:BOOL=${TRITON_ENABLE_VERTEX_AI} | ||
| -DTRITON_ENABLE_GRPC:BOOL=${TRITON_ENABLE_GRPC} | ||
| -DTRITON_MIN_COMPUTE_CAPABILITY:STRING=${TRITON_MIN_COMPUTE_CAPABILITY} | ||
| -DTRITON_ENABLE_METRICS:BOOL=${TRITON_ENABLE_METRICS} | ||
| -DTRITON_ENABLE_METRICS_GPU:BOOL=${TRITON_ENABLE_METRICS_GPU} | ||
| -DTRITON_ENABLE_METRICS_CPU:BOOL=${TRITON_ENABLE_METRICS_CPU} | ||
| -DTRITON_ENABLE_GCS:BOOL=${TRITON_ENABLE_GCS} | ||
| -DTRITON_ENABLE_AZURE_STORAGE:BOOL=${TRITON_ENABLE_AZURE_STORAGE} | ||
| -DTRITON_ENABLE_S3:BOOL=${TRITON_ENABLE_S3} | ||
| -DTRITON_ENABLE_TENSORRT:BOOL=${TRITON_ENABLE_TENSORRT} | ||
| -DTRITON_ENABLE_ENSEMBLE:BOOL=${TRITON_ENABLE_ENSEMBLE} | ||
| -DCMAKE_BUILD_TYPE:STRING=${CMAKE_BUILD_TYPE} | ||
| -DCMAKE_INSTALL_PREFIX:PATH=${TRITON_INSTALL_PREFIX} | ||
| -DTRITON_VERSION:STRING=${TRITON_VERSION} | ||
| DEPENDS ${TRITON_DEPENDS} | ||
| ) | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should this be OFF by default? @GuanLuo
and if so, we might need to update some gitlab-ci.yaml or build.py arg to set it to ON explicitly for CI.