From cd0e281efd6c61f9e228adaec899492282d12950 Mon Sep 17 00:00:00 2001 From: Brian Lee Date: Sun, 25 Mar 2018 11:06:55 -0700 Subject: [PATCH] Added Windows build support. --- ccminer.cpp | 3 ++- ccminer.vcxproj | 11 +++++++++-- ccminer.vcxproj.filters | 19 +++++++++++++++++++ 3 files changed, 30 insertions(+), 3 deletions(-) diff --git a/ccminer.cpp b/ccminer.cpp index a1da688113..7e5ec0afbf 100644 --- a/ccminer.cpp +++ b/ccminer.cpp @@ -2,6 +2,7 @@ * Copyright 2010 Jeff Garzik * Copyright 2012-2014 pooler * Copyright 2014-2017 tpruvot + * Copyright 2018 brianmct * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the Free @@ -3041,7 +3042,7 @@ static void *stratum_thread(void *userdata) if (switchn != pool_switch_count) goto pool_switched; bool stratum_full = false; - for (uint i = 0; i < opt_timeout; i++) { + for (int i = 0; i < opt_timeout; i++) { if (stratum_socket_full(&stratum, 1)) { stratum_full = true; break; diff --git a/ccminer.vcxproj b/ccminer.vcxproj index 5fe11d75fd..933cf0b226 100644 --- a/ccminer.vcxproj +++ b/ccminer.vcxproj @@ -155,7 +155,7 @@ 80 true true - compute_50,sm_50;compute_52,sm_52;compute_30,sm_30 + compute_61,sm_61;compute_50,sm_50;compute_52,sm_52 --ptxas-options="-O2" --Wno-deprecated-gpu-targets %(AdditionalOptions) O2 @@ -198,7 +198,7 @@ 80 true true - compute_52,sm_52;compute_50,sm_50;compute_35,sm_35;compute_30,sm_30 + compute_61,sm_61;compute_52,sm_52;compute_50,sm_50 $(NVTOOLSEXT_PATH)\include O3 64 @@ -268,6 +268,7 @@ + @@ -407,6 +408,7 @@ + @@ -435,6 +437,10 @@ + + + + @@ -603,6 +609,7 @@ + diff --git a/ccminer.vcxproj.filters b/ccminer.vcxproj.filters index a8f149e6e7..ab70a6f9a1 100644 --- a/ccminer.vcxproj.filters +++ b/ccminer.vcxproj.filters @@ -602,6 +602,9 @@ Header Files\CUDA + + Source Files\CUDA\x11 + @@ -991,11 +994,27 @@ Source Files\CUDA\x16r + + Source Files\CUDA\qubit + + + Source Files\CUDA\x11 + + + Source Files\CUDA\x11 + + + Source Files\CUDA\x15 + + + Source Files\CUDA\x13 + Ressources +