-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathauto-run-trt.sh
40 lines (26 loc) · 1.21 KB
/
auto-run-trt.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/bin/bash
# debs location here
xdebs_dir=nv-tensorrt-repo-ubuntu2004-cuda11.4-trt8.5.10.4-d6l-cross-ga-20221229
pwdp=`pwd`
# to be save here
xfiles=${pwdp}/${xdebs_dir}/xfiles
echo "dpkg -x $deb begin ..."
# enter debs
cd ${xdebs_dir}
ls -l *.deb | awk '{print $9}' > tlog
wc -l tlog
echo "=====read all deb files====="
for line in `cat tlog`
do
echo $line'|======='
dpkg -x $line ${xfiles}
done
echo "done"
cat << EOF > /dev/null
echo " !!! not reach here ... !!! "
export PATH=$PATH:/mnt/d/workspace/cuda-repo-ubuntu2004-11-4-local_11.4.4-470.82.01-1_amd64/xfiles/usr/local/cuda-11.4/bin
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/mnt/d/workspace/cuda-repo-ubuntu2004-11-4-local_11.4.4-470.82.01-1_amd64/xfiles/usr/local/cuda-11.4/targets/x86_64-linux/lib
export PATH=$PATH:/mnt/d/workspace/nv-tensorrt-repo-ubuntu2004-cuda11.4-trt8.5.10.4-x86-host-ga-20221229_1-1_amd64/xfiles/usr/src/tensorrt/bin
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/mnt/d/workspace/nv-tensorrt-repo-ubuntu2004-cuda11.4-trt8.5.10.4-x86-host-ga-20221229_1-1_amd64/xfiles/usr/lib/x86_64-linux-gnu
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/mnt/d/workspace/cudnn-local-repo-ubuntu2004-8.6.0.174/xfiles/usr/lib/x86_64-linux-gnu
EOF