From 340ea8c9a0c4b720e4c2efb46dd72b6d5b6cb957 Mon Sep 17 00:00:00 2001 From: Jonathan Downing Date: Mon, 6 Nov 2023 10:55:59 -0600 Subject: [PATCH] Fixed CUDA building for compute 8.6, added compatibility for RTX 4000 series --- libethash-cuda/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libethash-cuda/CMakeLists.txt b/libethash-cuda/CMakeLists.txt index 7da7e29..72ab081 100644 --- a/libethash-cuda/CMakeLists.txt +++ b/libethash-cuda/CMakeLists.txt @@ -28,8 +28,6 @@ list(APPEND CUDA_NVCC_FLAGS_DEBUG -G) if(COMPUTE AND (COMPUTE GREATER 0)) list(APPEND CUDA_NVCC_FLAGS "-gencode arch=compute_${COMPUTE},code=sm_${COMPUTE}") else() - list(APPEND CUDA_NVCC_FLAGS "-gencode arch=compute_30,code=sm_30") - list(APPEND CUDA_NVCC_FLAGS "-gencode arch=compute_35,code=sm_35") list(APPEND CUDA_NVCC_FLAGS "-gencode arch=compute_50,code=sm_50") list(APPEND CUDA_NVCC_FLAGS "-gencode arch=compute_52,code=sm_52") list(APPEND CUDA_NVCC_FLAGS "-gencode arch=compute_53,code=sm_53") @@ -41,6 +39,8 @@ else() endif() if(NOT CUDA_VERSION VERSION_LESS 10.0) list(APPEND CUDA_NVCC_FLAGS "-gencode arch=compute_75,code=sm_75") + list(APPEND CUDA_NVCC_FLAGS "-gencode arch=compute_86,code=sm_86") + list(APPEND CUDA_NVCC_FLAGS "-gencode arch=compute_90,code=sm_90") endif() endif()