"official/vision/serving/detection_test.py" did not exist on "36d73bf6521ddb0c3401566ea22a14472f3be26a"
build.sh 396 Bytes
Newer Older
rusty1s's avatar
rusty1s committed
1
2
3
4
#!/bin/sh

echo "Compiling kernel..."

rusty1s's avatar
rusty1s committed
5
if [ -z "$1" ]; then TORCH=$(python -c "import os; import torch; print(os.path.dirname(torch.__file__))"); else TORCH="$1"; fi
rusty1s's avatar
rusty1s committed
6
7
SRC_DIR=aten/THC
BUILD_DIR=torch_spline_conv/_ext
rusty1s's avatar
rusty1s committed
8

rusty1s's avatar
rusty1s committed
9
mkdir -p "$BUILD_DIR"
rusty1s's avatar
rusty1s committed
10
$(which nvcc) -c -o "$BUILD_DIR/THC.so" "$SRC_DIR/THC.cu" -arch=sm_52 -Xcompiler -fPIC -shared "-I$TORCH/lib/include/TH" "-I$TORCH/lib/include" "-I$SRC_DIR"