We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ce13a47 commit 1a11fd0Copy full SHA for 1a11fd0
win/pkgs/tensorrt.ps1
@@ -27,7 +27,7 @@ pushd "$root"
27
28
# Update the URL as new version releases.
29
$trt_mirror="https://github.com/xkszltl/Roaster/releases/download/trt"
30
-$trt_name="TensorRT-7.1.3.4.Windows10.x86_64.cuda-11.0.cudnn8.0.zip"
+$trt_name="TensorRT-7.2.1.6.Windows10.x86_64.cuda-$((nvcc --version) -match ' release ([0-9\.]*)' -replace '.* release ([0-9\.]*).*','${1}').cudnn8.0.zip"
31
32
if (-not (Test-Path "../${trt_name}"))
33
{
0 commit comments