Commit 51e4b112 authored by rusty1s's avatar rusty1s
Browse files

added cuda boilerplate

parent 3897e5f4
......@@ -16,7 +16,7 @@ extra_objects = []
with_cuda = False
if torch.cuda.is_available():
subprocess.call('./build.sh {}'.format(osp.dirname(torch.__file__)))
subprocess.call(['./build.sh', osp.dirname(torch.__file__)])
headers += ['torch_spline_conv/src/cuda.h']
sources += ['torch_spline_conv/src/cuda.c']
......
......@@ -2,6 +2,7 @@
echo "Compiling kernel..."
if [ -z "$1" ]; then TORCH=$(python -c "import os; import torch; print(os.path.dirname(torch.__file__))"); else TORCH="$1"; fi
SRC_DIR=torch_spline_conv/kernel
BUILD_DIR=torch_spline_conv/build
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment