Unverified Commit 8c7560b0 authored by Matthias Fey's avatar Matthias Fey Committed by GitHub
Browse files

Merge pull request #70 from lgray/patch-1

Ensure all GPU support is turned on
parents 7936d3b0 57c0c342
......@@ -8,6 +8,7 @@ option(WITH_CUDA "Enable CUDA support" OFF)
if(WITH_CUDA)
enable_language(CUDA)
add_definitions(-D__CUDA_NO_HALF_OPERATORS__)
add_definitions(-DWITH_CUDA)
endif()
find_package(Python3 COMPONENTS Development)
......@@ -73,3 +74,8 @@ if(WITH_CUDA)
csrc/cuda/spspmm_cuda.h
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/${PROJECT_NAME}/cuda)
endif()
if(WITH_CUDA)
set_property(TARGET torch_cuda PROPERTY INTERFACE_COMPILE_OPTIONS "")
set_property(TARGET torch_cpu PROPERTY INTERFACE_COMPILE_OPTIONS "")
endif()
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