Skip to content

Commit b539560

Browse files
author
pytorchbot
committed
2025-08-12 nightly release (2414b0f)
1 parent bcfbbec commit b539560

File tree

163 files changed

+397
-374
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

163 files changed

+397
-374
lines changed

BUILD.bazel

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,7 @@ pkg_tar(
8888
name = "libtorchtrt",
8989
srcs = [
9090
"//:LICENSE",
91-
"//bzl_def:BUILD",
92-
"//bzl_def:WORKSPACE",
91+
"//third_party/torch_tensorrt:BUILD",
9392
],
9493
extension = "tar.gz",
9594
package_dir = "torch_tensorrt",
@@ -107,8 +106,7 @@ pkg_tar(
107106
name = "libtorchtrt_runtime",
108107
srcs = [
109108
"//:LICENSE",
110-
"//bzl_def:BUILD",
111-
"//bzl_def:WORKSPACE",
109+
"//third_party/torch_tensorrt:BUILD",
112110
],
113111
extension = "tar.gz",
114112
package_dir = "torch_tensorrt_runtime",

MODULE.bazel

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,16 @@ git_override(
2424

2525
local_repository = use_repo_rule("@bazel_tools//tools/build_defs/repo:local.bzl", "local_repository")
2626

27+
28+
new_local_repository = use_repo_rule("@bazel_tools//tools/build_defs/repo:local.bzl", "new_local_repository")
29+
2730
# External dependency for torch_tensorrt if you already have precompiled binaries.
28-
local_repository(
31+
new_local_repository(
2932
name = "torch_tensorrt",
30-
path = "/opt/conda/lib/python3.11/site-packages/torch_tensorrt",
33+
build_file = "@//third_party/torch_tensorrt:BUILD",
34+
path = "/usr/local/lib/python3.12/site-packages/torch_tensorrt/",
3135
)
3236

33-
new_local_repository = use_repo_rule("@bazel_tools//tools/build_defs/repo:local.bzl", "new_local_repository")
34-
3537
# CUDA should be installed on the system locally
3638
# for linux x86_64 and aarch64
3739
new_local_repository(

bzl_def/WORKSPACE

Lines changed: 0 additions & 1 deletion
This file was deleted.

docker/MODULE.bazel.ngc

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,17 @@ git_override(
2424

2525
local_repository = use_repo_rule("@bazel_tools//tools/build_defs/repo:local.bzl", "local_repository")
2626

27+
28+
new_local_repository = use_repo_rule("@bazel_tools//tools/build_defs/repo:local.bzl", "new_local_repository")
29+
30+
2731
# External dependency for torch_tensorrt if you already have precompiled binaries.
28-
local_repository(
32+
new_local_repository(
2933
name = "torch_tensorrt",
34+
build_file = "@//third_party/torch_tensorrt:BUILD",
3035
path = "/usr/local/lib/python3.12/dist-packages/torch_tensorrt/",
3136
)
3237

33-
new_local_repository = use_repo_rule("@bazel_tools//tools/build_defs/repo:local.bzl", "new_local_repository")
34-
3538

3639
# CUDA should be installed on the system locally
3740
new_local_repository(
@@ -55,8 +58,29 @@ new_local_repository(
5558
build_file = "third_party/libtorch/BUILD"
5659
)
5760

61+
62+
# This is a workaround (WAR), not a functional Bazel repository.
63+
# It directly references a system-installed PyTorch package, which breaks hermeticity
64+
new_local_repository(
65+
name = "torch_l4t",
66+
path = "/usr/local/lib/python3.12/dist-packages/torch/",
67+
build_file = "third_party/libtorch/BUILD"
68+
)
69+
5870
new_local_repository(
5971
name = "tensorrt",
6072
path = "/usr/",
6173
build_file = "@//third_party/tensorrt/local:BUILD"
6274
)
75+
76+
new_local_repository(
77+
name = "tensorrt_sbsa",
78+
path = "/usr/",
79+
build_file = "@//third_party/tensorrt/local:BUILD"
80+
)
81+
82+
new_local_repository(
83+
name = "tensorrt_l4t",
84+
path = "/usr/",
85+
build_file = "@//third_party/tensorrt/local:BUILD"
86+
)

docs/_cpp_api/classtorch__tensorrt_1_1DataType.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
<meta name="viewport" content="width=device-width, initial-scale=1.0">
1212

13-
<title>Class DataType &mdash; Torch-TensorRT v2.9.0.dev0+a2f6b2c documentation</title>
13+
<title>Class DataType &mdash; Torch-TensorRT v2.9.0.dev0+33b8bbc documentation</title>
1414

1515

1616

@@ -293,7 +293,7 @@
293293

294294

295295
<div class="version">
296-
v2.9.0.dev0+a2f6b2c
296+
v2.9.0.dev0+33b8bbc
297297
</div>
298298

299299

docs/_cpp_api/classtorch__tensorrt_1_1Device_1_1DeviceType.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
<meta name="viewport" content="width=device-width, initial-scale=1.0">
1212

13-
<title>Class Device::DeviceType &mdash; Torch-TensorRT v2.9.0.dev0+a2f6b2c documentation</title>
13+
<title>Class Device::DeviceType &mdash; Torch-TensorRT v2.9.0.dev0+33b8bbc documentation</title>
1414

1515

1616

@@ -293,7 +293,7 @@
293293

294294

295295
<div class="version">
296-
v2.9.0.dev0+a2f6b2c
296+
v2.9.0.dev0+33b8bbc
297297
</div>
298298

299299

docs/_cpp_api/classtorch__tensorrt_1_1TensorFormat.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
<meta name="viewport" content="width=device-width, initial-scale=1.0">
1212

13-
<title>Class TensorFormat &mdash; Torch-TensorRT v2.9.0.dev0+a2f6b2c documentation</title>
13+
<title>Class TensorFormat &mdash; Torch-TensorRT v2.9.0.dev0+33b8bbc documentation</title>
1414

1515

1616

@@ -293,7 +293,7 @@
293293

294294

295295
<div class="version">
296-
v2.9.0.dev0+a2f6b2c
296+
v2.9.0.dev0+33b8bbc
297297
</div>
298298

299299

docs/_cpp_api/define_macros_8h_1a18d295a837ac71add5578860b55e5502.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
<meta name="viewport" content="width=device-width, initial-scale=1.0">
1212

13-
<title>Define STR &mdash; Torch-TensorRT v2.9.0.dev0+a2f6b2c documentation</title>
13+
<title>Define STR &mdash; Torch-TensorRT v2.9.0.dev0+33b8bbc documentation</title>
1414

1515

1616

@@ -293,7 +293,7 @@
293293

294294

295295
<div class="version">
296-
v2.9.0.dev0+a2f6b2c
296+
v2.9.0.dev0+33b8bbc
297297
</div>
298298

299299

docs/_cpp_api/define_macros_8h_1a282fd3c0b1c3a215148ae372070e1268.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
<meta name="viewport" content="width=device-width, initial-scale=1.0">
1212

13-
<title>Define TORCH_TENSORRT_PATCH_VERSION &mdash; Torch-TensorRT v2.9.0.dev0+a2f6b2c documentation</title>
13+
<title>Define TORCH_TENSORRT_PATCH_VERSION &mdash; Torch-TensorRT v2.9.0.dev0+33b8bbc documentation</title>
1414

1515

1616

@@ -293,7 +293,7 @@
293293

294294

295295
<div class="version">
296-
v2.9.0.dev0+a2f6b2c
296+
v2.9.0.dev0+33b8bbc
297297
</div>
298298

299299

docs/_cpp_api/define_macros_8h_1a31398a6d4d27e28817afb0f0139e909e.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
<meta name="viewport" content="width=device-width, initial-scale=1.0">
1212

13-
<title>Define TORCH_TENSORRT_MAJOR_VERSION &mdash; Torch-TensorRT v2.9.0.dev0+a2f6b2c documentation</title>
13+
<title>Define TORCH_TENSORRT_MAJOR_VERSION &mdash; Torch-TensorRT v2.9.0.dev0+33b8bbc documentation</title>
1414

1515

1616

@@ -293,7 +293,7 @@
293293

294294

295295
<div class="version">
296-
v2.9.0.dev0+a2f6b2c
296+
v2.9.0.dev0+33b8bbc
297297
</div>
298298

299299

0 commit comments

Comments
 (0)