Skip to content

Commit 1a11fd0

Browse files
committed
Upgrade TensorRT to 7.2.1 on Windows and use nvcc to figure out version.
1 parent ce13a47 commit 1a11fd0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

win/pkgs/tensorrt.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ pushd "$root"
2727

2828
# Update the URL as new version releases.
2929
$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"
30+
$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"
3131

3232
if (-not (Test-Path "../${trt_name}"))
3333
{

0 commit comments

Comments
 (0)