We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 936b940 commit cb2ad46Copy full SHA for cb2ad46
scripts/build-env/manylinux.sh
@@ -1,9 +1,20 @@
1
#!/bin/bash
2
+
3
+# Decide if we can proceed or not (root or sudo is required) and if so store whether sudo should be used or not.
4
+if [ "$is_root" = false ] && [ "$has_sudo" = false ]; then
5
+ echo "Root or sudo is required. Aborting."
6
+ exit 1
7
+elif [ "$is_root" = false ] ; then
8
+ USE_SUDO=sudo
9
+else
10
+ USE_SUDO=
11
+fi
12
13
cd ../..
14
15
# Install dependencies for building Tensor-Array on manylinux
16
chmod +x tensor-array-repo/Tensor-Array/scripts/actions/install-cuda-rhel.sh
-dnf -y install redhat-lsb-core wget
17
+$USE_SUDO dnf -y install redhat-lsb-core wget
18
tensor-array-repo/Tensor-Array/scripts/actions/install-cuda-rhel.sh
19
20
# Check if nvcc is available
0 commit comments