Skip to content

Commit

Permalink
Add MSHADOW_FORCE_STREAM preprocessor define (apache#186)
Browse files Browse the repository at this point in the history
This change brings the CMake build closer to parity with the upstream
Makefile, which unconditionally enables the MSHADOW_FORCE_STREAM preprocessor define at
the MXNet level. This is kept within the USE_CUDA condition based on the
assumption that it only impacts GPU training.
  • Loading branch information
alextnewman authored and piiswrong committed Dec 18, 2016
1 parent 28b6c08 commit 847a119
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmake/mshadow.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ if(USE_CUDA)
message(FATAL_ERROR "-- CUDA is disabled.")
endif()
add_definitions(-DMSHADOW_USE_CUDA=1)
add_definitions(-DMSHADOW_FORCE_STREAM)
include_directories(SYSTEM ${CUDA_INCLUDE_DIRS})
list(APPEND mshadow_LINKER_LIBS ${CUDA_CUDART_LIBRARY}
${CUDA_curand_LIBRARY} ${CUDA_CUBLAS_LIBRARIES})
Expand Down

0 comments on commit 847a119

Please sign in to comment.