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
8e967c63
Unverified
Commit
8e967c63
authored
Jul 14, 2020
by
Matthias Fey
Committed by
GitHub
Jul 14, 2020
Browse files
Merge pull request #17 from lgray/patch-1
Ensure all GPU support is turned on
parents
c88c95f2
e405535f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
CMakeLists.txt
CMakeLists.txt
+6
-0
No files found.
CMakeLists.txt
View file @
8e967c63
...
@@ -8,6 +8,7 @@ option(WITH_CUDA "Enable CUDA support" OFF)
...
@@ -8,6 +8,7 @@ option(WITH_CUDA "Enable CUDA support" OFF)
if
(
WITH_CUDA
)
if
(
WITH_CUDA
)
enable_language
(
CUDA
)
enable_language
(
CUDA
)
add_definitions
(
-D__CUDA_NO_HALF_OPERATORS__
)
add_definitions
(
-D__CUDA_NO_HALF_OPERATORS__
)
add_definitions
(
-DWITH_CUDA
)
endif
()
endif
()
find_package
(
Python3 COMPONENTS Development
)
find_package
(
Python3 COMPONENTS Development
)
...
@@ -64,3 +65,8 @@ if(WITH_CUDA)
...
@@ -64,3 +65,8 @@ if(WITH_CUDA)
csrc/cuda/weighting_cuda.h
csrc/cuda/weighting_cuda.h
DESTINATION
${
CMAKE_INSTALL_INCLUDEDIR
}
/
${
PROJECT_NAME
}
/cuda
)
DESTINATION
${
CMAKE_INSTALL_INCLUDEDIR
}
/
${
PROJECT_NAME
}
/cuda
)
endif
()
endif
()
if
(
WITH_CUDA
)
set_property
(
TARGET torch_cuda PROPERTY INTERFACE_COMPILE_OPTIONS
""
)
set_property
(
TARGET torch_cpu PROPERTY INTERFACE_COMPILE_OPTIONS
""
)
endif
()
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