Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix code grouping in CMakeLists.txt #8440

Merged
merged 1 commit into from
Nov 14, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion chainerx_cc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -149,12 +149,13 @@ endif()
if(${CHAINERX_BUILD_CUDA})
find_package(CUDA REQUIRED QUIET)

add_definitions(-DCHAINERX_ENABLE_CUDA=1)

list(APPEND CUDA_NVCC_FLAGS "-std=c++${CMAKE_CXX_STANDARD}")

# CUDA_cublas_device_LIBRARY is required for CUDA > 9.2 with cmake < to 3.12.2.
# This is because cublas_device was deprecated in CUDA 9.2, but FindCUDA supported it in 3.12.2.
set(CUDA_cublas_device_LIBRARY ${CUDA_LIBRARIES})
add_definitions(-DCHAINERX_ENABLE_CUDA=1)

# If CHAINERX_CUDNN_USE_CUPY is set, retrieve cuDNN files from CuPy installation.
if(CHAINERX_CUDNN_USE_CUPY)
Expand Down