Skip to content

Commit

Permalink
CMake: Add preprocessor defines for CUDA/NVRTC (apache#3929)
Browse files Browse the repository at this point in the history
The USE_CUDA flag should now enabled MXNET_USE_CUDA and MXNET_USE_NVRTC
as both libraries are located at cmake generation time.
  • Loading branch information
alextnewman authored and piiswrong committed Nov 22, 2016
1 parent 314835d commit 560eb4e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,8 @@ if(USE_CUDA)
link_directories("${CUDA_TOOLKIT_ROOT_DIR}/lib64")
endif()
list(APPEND SOURCE ${cuda_objs} ${CUDA})
add_definitions(-DMXNET_USE_CUDA=1)
add_definitions(-DMXNET_USE_NVRTC=1)
endif()

# unsupported: if caffe is a subdirectory of mxnet, load its CMakeLists.txt as well
Expand Down

0 comments on commit 560eb4e

Please sign in to comment.