Spaces:
Sleeping
Sleeping
Set CC and CUDA_HOME env vars in shell script
Browse files- build_ops.sh +2 -2
build_ops.sh
CHANGED
@@ -6,13 +6,13 @@
|
|
6 |
#DEBIAN_FRONTEND=noninteractive apt-get update
|
7 |
#DEBIAN_FRONTEND=noninteractive apt-get -y install cuda
|
8 |
#wheel convert ./MultiScaleDeformableAttention-1.0-py3.9-linux-x86_64.egg
|
|
|
|
|
9 |
pip install ./models/GroundingDINO/ops
|
10 |
echo $CUDA_PATH
|
11 |
echo $LD_LIBRARY_PATH
|
12 |
echo $PATH
|
13 |
echo $CUDA_HOME
|
14 |
-
#export CC=/usr/bin/gcc-11 # this ensures that gcc 11 is being used for compilation
|
15 |
-
#export CUDA_HOME=/usr/local/cuda
|
16 |
#cd ./models/GroundingDINO/ops
|
17 |
#python ./setup.py build install
|
18 |
#python ./test.py # should result in 6 lines of * True
|
|
|
6 |
#DEBIAN_FRONTEND=noninteractive apt-get update
|
7 |
#DEBIAN_FRONTEND=noninteractive apt-get -y install cuda
|
8 |
#wheel convert ./MultiScaleDeformableAttention-1.0-py3.9-linux-x86_64.egg
|
9 |
+
export CC=/usr/bin/gcc-11 # this ensures that gcc 11 is being used for compilation
|
10 |
+
export CUDA_HOME=/usr/local/cuda
|
11 |
pip install ./models/GroundingDINO/ops
|
12 |
echo $CUDA_PATH
|
13 |
echo $LD_LIBRARY_PATH
|
14 |
echo $PATH
|
15 |
echo $CUDA_HOME
|
|
|
|
|
16 |
#cd ./models/GroundingDINO/ops
|
17 |
#python ./setup.py build install
|
18 |
#python ./test.py # should result in 6 lines of * True
|