Skip to content

Commit

Permalink
add fix for CUDA 10
Browse files Browse the repository at this point in the history
  • Loading branch information
soumith committed Dec 6, 2018
1 parent 524574a commit db5d313
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions aten/src/ATen/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,12 @@ IF(USE_CUDA AND NOT USE_ROCM)
--generate-code arch=compute_50,code=sm_50
--generate-code arch=compute_60,code=sm_60
--generate-code arch=compute_70,code=sm_70)
elseif(${CUDA_VERSION_MAJOR} EQUAL "10")
SET(CUFFT_FAKELINK_OPTIONS
--generate-code arch=compute_35,code=sm_35
--generate-code arch=compute_50,code=sm_50
--generate-code arch=compute_60,code=sm_60
--generate-code arch=compute_70,code=sm_70)
else()
MESSAGE(FATAL_ERROR "Unhandled major cuda version ${CUDA_VERSION_MAJOR}")
endif()
Expand Down

0 comments on commit db5d313

Please sign in to comment.