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
51e4b112
Commit
51e4b112
authored
Mar 14, 2018
by
rusty1s
Browse files
added cuda boilerplate
parent
3897e5f4
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
2 additions
and
1 deletion
+2
-1
build.py
build.py
+1
-1
build.sh
build.sh
+1
-0
torch_spline_conv/kernel/kernel.cu
torch_spline_conv/kernel/kernel.cu
+0
-0
torch_spline_conv/kernel/kernel.h
torch_spline_conv/kernel/kernel.h
+0
-0
torch_spline_conv/src/cuda.c
torch_spline_conv/src/cuda.c
+0
-0
torch_spline_conv/src/cuda.h
torch_spline_conv/src/cuda.h
+0
-0
torch_spline_conv/src/generic/cuda.c
torch_spline_conv/src/generic/cuda.c
+0
-0
No files found.
build.py
View file @
51e4b112
...
@@ -16,7 +16,7 @@ extra_objects = []
...
@@ -16,7 +16,7 @@ extra_objects = []
with_cuda
=
False
with_cuda
=
False
if
torch
.
cuda
.
is_available
():
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'
]
headers
+=
[
'torch_spline_conv/src/cuda.h'
]
sources
+=
[
'torch_spline_conv/src/cuda.c'
]
sources
+=
[
'torch_spline_conv/src/cuda.c'
]
...
...
build.sh
View file @
51e4b112
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
echo
"Compiling kernel..."
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
SRC_DIR
=
torch_spline_conv/kernel
BUILD_DIR
=
torch_spline_conv/build
BUILD_DIR
=
torch_spline_conv/build
...
...
torch_spline_conv/kernel/kernel.cu
0 → 100644
View file @
51e4b112
torch_spline_conv/kernel/kernel.h
0 → 100644
View file @
51e4b112
torch_spline_conv/src/cuda.c
0 → 100644
View file @
51e4b112
torch_spline_conv/src/cuda.h
0 → 100644
View file @
51e4b112
torch_spline_conv/src/generic/cuda.c
0 → 100644
View file @
51e4b112
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