Skip to content

Commit

Permalink
Merge pull request ethereum-mining#2082 from aloisklink/support-ampere
Browse files Browse the repository at this point in the history
Support Ampere graphic cards using Cuda 11.0/11.1
  • Loading branch information
AndreaLanfranchi authored Nov 24, 2020
2 parents d5f3a97 + 8f48e43 commit beaeb00
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions libethash-cuda/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,14 @@ else()
if(NOT CUDA_VERSION VERSION_LESS 10.0)
list(APPEND CUDA_NVCC_FLAGS "-gencode arch=compute_75,code=sm_75")
endif()
if(NOT CUDA_VERSION VERSION_LESS 11.0)
# NVIDIA A100 and NVIDIA DGX-A100
list(APPEND CUDA_NVCC_FLAGS "-gencode arch=compute_80,code=sm_80")
endif()
if(NOT CUDA_VERSION VERSION_LESS 11.1)
# Tesla GA10x cards, RTX Ampere – RTX 3080/3090, RTX A6000, RTX A40
list(APPEND CUDA_NVCC_FLAGS "-gencode arch=compute_86,code=sm_86")
endif()
endif()

file(GLOB sources "*.cpp" "*.cu")
Expand Down

0 comments on commit beaeb00

Please sign in to comment.