From 256eea1b0bb3048e5195f33a9e937adc8aeafd53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Bylica?= Date: Mon, 3 Jul 2017 16:09:33 +0200 Subject: [PATCH 1/3] CMake: Refactor mvcc flags --- libethash-cuda/CMakeLists.txt | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/libethash-cuda/CMakeLists.txt b/libethash-cuda/CMakeLists.txt index 47233d696..e1be8c9d0 100644 --- a/libethash-cuda/CMakeLists.txt +++ b/libethash-cuda/CMakeLists.txt @@ -6,10 +6,19 @@ list(APPEND CUDA_NVCC_FLAGS_RELEASE -O3) 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(COMPUTE AND (COMPUTE GREATER 0)) - set(CUDA_NVCC_FLAGS ${CUDA_NVCC_FLAGS};-gencode arch=compute_20,code=sm_20;-gencode arch=compute_30,code=sm_30;-gencode arch=compute_35,code=sm_35;-gencode arch=compute_50,code=sm_50;-gencode arch=compute_52,code=sm_52;-gencode arch=compute_61,code=sm_61) -endif(COMPUTE AND (COMPUTE GREATER 0)) + list(APPEND CUDA_NVCC_FLAGS "-gencode arch=compute_${COMPUTE},code=sm_${COMPUTE}") +else() + set( + CUDA_NVCC_FLAGS + ${CUDA_NVCC_FLAGS} + "-gencode arch=compute_20,code=sm_20" + "-gencode arch=compute_30,code=sm_30" + "-gencode arch=compute_35,code=sm_35" + "-gencode arch=compute_50,code=sm_50" + "-gencode arch=compute_52,code=sm_52" + "-gencode arch=compute_61,code=sm_61" + ) +endif() file(GLOB sources "*.cpp" "*.cu") file(GLOB headers "*.h" "*.cuh") From 1de8f50a640f636e4e14b859d3820b63ad8fe065 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Bylica?= Date: Mon, 3 Jul 2017 16:27:31 +0200 Subject: [PATCH 2/3] CUDA: Drop Compute 2.0 architecture --- libethash-cuda/CMakeLists.txt | 1 - 1 file changed, 1 deletion(-) diff --git a/libethash-cuda/CMakeLists.txt b/libethash-cuda/CMakeLists.txt index e1be8c9d0..fac71a6b2 100644 --- a/libethash-cuda/CMakeLists.txt +++ b/libethash-cuda/CMakeLists.txt @@ -11,7 +11,6 @@ else() set( CUDA_NVCC_FLAGS ${CUDA_NVCC_FLAGS} - "-gencode arch=compute_20,code=sm_20" "-gencode arch=compute_30,code=sm_30" "-gencode arch=compute_35,code=sm_35" "-gencode arch=compute_50,code=sm_50" From 93dbb73095eedc401e85601829932cb738e973ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Bylica?= Date: Tue, 4 Jul 2017 10:43:35 +0200 Subject: [PATCH 3/3] CUDA: Add Compute 6.0 architecture --- libethash-cuda/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/libethash-cuda/CMakeLists.txt b/libethash-cuda/CMakeLists.txt index fac71a6b2..be0239d99 100644 --- a/libethash-cuda/CMakeLists.txt +++ b/libethash-cuda/CMakeLists.txt @@ -15,6 +15,7 @@ else() "-gencode arch=compute_35,code=sm_35" "-gencode arch=compute_50,code=sm_50" "-gencode arch=compute_52,code=sm_52" + "-gencode arch=compute_60,code=sm_60" "-gencode arch=compute_61,code=sm_61" ) endif()