Skip to content

Commit 9442428

Browse files
committed
Using CUDA 11.3 to have both a CUDNN and TensorRT
1 parent 3f8540d commit 9442428

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

O/ONNXRuntime/build_tarballs.jl

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ version = v"1.10.0"
1313
# Cf. https://onnxruntime.ai/docs/execution-providers/TensorRT-ExecutionProvider.html#requirements
1414
cuda_versions = [
1515
v"10.2",
16-
v"11.4",
16+
v"11.3",
1717
]
1818
cudnn_version = v"8.2.4"
1919
tensorrt_version = v"8.0.1"
@@ -142,9 +142,16 @@ for cuda_version in [nothing, cuda_versions...], platform in platforms
142142
platform_dependencies = BinaryBuilder.AbstractDependency[]
143143
append!(platform_dependencies, dependencies)
144144
if !isnothing(cuda_version)
145-
append!(platform_dependencies, CUDA.required_dependencies(augmented_platform))
145+
if Base.thisminor(cuda_version) != v"11.3"
146+
append!(platform_dependencies, CUDA.required_dependencies(augmented_platform))
147+
else
148+
append!(platform_dependencies, [
149+
BuildDependency(PackageSpec("CUDA_full_jll", v"11.3.1")),
150+
Dependency("CUDA_Runtime_jll", v"0.7.0"), # Using Dependency with build version v"0.7.0" to get support for cuda = "11.3"
151+
])
152+
end
146153
append!(platform_dependencies, [
147-
Dependency("CUDNN_jll", cudnn_version; compat = cudnn_compat),
154+
Dependency(get_addable_spec("CUDNN_jll", v"8.2.4+0"); compat = cudnn_compat), # Using v"8.2.4+0" to get support for cuda = "11.3"
148155
Dependency("TensorRT_jll", tensorrt_version; compat = tensorrt_compat),
149156
Dependency("Zlib_jll"),
150157
])

0 commit comments

Comments
 (0)