Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
torch-spline-conv
Commits
6e1243b3
Commit
6e1243b3
authored
Mar 03, 2018
by
rusty1s
Browse files
read python executable
parent
ba1f449f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
build.py
build.py
+2
-1
build.sh
build.sh
+2
-1
No files found.
build.py
View file @
6e1243b3
import
sys
import
os
import
shutil
import
subprocess
...
...
@@ -16,7 +17,7 @@ extra_objects = []
with_cuda
=
False
if
torch
.
cuda
.
is_available
():
subprocess
.
call
(
'./build.sh
'
)
subprocess
.
call
(
'./build.sh
{}'
.
format
(
sys
.
executable
)
)
headers
+=
[
'torch_spline_conv/src/cuda.h'
]
sources
+=
[
'torch_spline_conv/src/cuda.c'
]
...
...
build.sh
View file @
6e1243b3
...
...
@@ -2,7 +2,8 @@
echo
"Compiling kernel..."
TORCH
=
$(
python
-c
"import os; import torch; print(os.path.dirname(torch.__file__))"
)
PYTHON
=
${
1
:-
python
}
TORCH
=
$(
$PYTHON
-c
"import os; import torch; print(os.path.dirname(torch.__file__))"
)
SRC_DIR
=
torch_spline_conv/kernel
BUILD_DIR
=
torch_spline_conv/build
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment