Skip to content

Commit

Permalink
Added Windows build support.
Browse files Browse the repository at this point in the history
  • Loading branch information
brian112358 committed Mar 25, 2018
1 parent 8be35c1 commit cd0e281
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 3 deletions.
3 changes: 2 additions & 1 deletion ccminer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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;
Expand Down
11 changes: 9 additions & 2 deletions ccminer.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@
<MaxRegCount>80</MaxRegCount>
<PtxAsOptionV>true</PtxAsOptionV>
<Keep>true</Keep>
<CodeGeneration>compute_50,sm_50;compute_52,sm_52;compute_30,sm_30</CodeGeneration>
<CodeGeneration>compute_61,sm_61;compute_50,sm_50;compute_52,sm_52</CodeGeneration>
<AdditionalOptions>--ptxas-options="-O2" --Wno-deprecated-gpu-targets %(AdditionalOptions)</AdditionalOptions>
<Optimization>O2</Optimization>
</CudaCompile>
Expand Down Expand Up @@ -198,7 +198,7 @@
<MaxRegCount>80</MaxRegCount>
<PtxAsOptionV>true</PtxAsOptionV>
<Keep>true</Keep>
<CodeGeneration>compute_52,sm_52;compute_50,sm_50;compute_35,sm_35;compute_30,sm_30</CodeGeneration>
<CodeGeneration>compute_61,sm_61;compute_52,sm_52;compute_50,sm_50</CodeGeneration>
<Include>$(NVTOOLSEXT_PATH)\include</Include>
<Optimization>O3</Optimization>
<TargetMachinePlatform>64</TargetMachinePlatform>
Expand Down Expand Up @@ -268,6 +268,7 @@
<ClCompile Include="neoscrypt\neoscrypt.cpp" />
<ClCompile Include="neoscrypt\neoscrypt-cpu.c" />
<ClInclude Include="neoscrypt\cuda_vectors.h" />
<ClInclude Include="x11\cuda_x11_aes_alexis.cuh" />
<ClInclude Include="x11\cuda_x11_simd512_sm2.cuh" />
<ClInclude Include="x16r\cuda_x16r.h" />
<CudaCompile Include="Algo256\bmw.cu" />
Expand Down Expand Up @@ -407,6 +408,7 @@
<CudaCompile Include="cuda.cpp" />
<CudaCompile Include="cuda_groestlcoin.cu" />
<CudaCompile Include="cuda_myriadgroestl.cu" />
<CudaCompile Include="qubit\qubit_luffa512_alexis.cu" />
<CudaCompile Include="scrypt\blake.cu" />
<CudaCompile Include="scrypt\keccak.cu" />
<CudaCompile Include="scrypt\sha256.cu" />
Expand Down Expand Up @@ -435,6 +437,10 @@
<CudaCompile Include="sha256\sha256d.cu" />
<CudaCompile Include="sha256\cuda_sha256t.cu" />
<CudaCompile Include="sha256\sha256t.cu" />
<CudaCompile Include="x11\cuda_x11_echo_alexis.cu" />
<CudaCompile Include="x11\cuda_x11_shavite512_alexis.cu" />
<CudaCompile Include="x13\cuda_x13_fugue512_alexis.cu" />
<CudaCompile Include="x15\cuda_x14_shabal512_alexis.cu" />
<CudaCompile Include="x15\cuda_x15_whirlpool_sm3.cu" />
<CudaCompile Include="x16r\x16r.cu" />
<CudaCompile Include="x16r\cuda_x16_echo512.cu" />
Expand Down Expand Up @@ -603,6 +609,7 @@
</ItemGroup>
<ItemGroup>
<Image Include="res\ccminer.ico" />
<Image Include="res\icon2.ico" />
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="res\ccminer.rc" />
Expand Down
19 changes: 19 additions & 0 deletions ccminer.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -602,6 +602,9 @@
<ClInclude Include="x16r\cuda_x16r.h">
<Filter>Header Files\CUDA</Filter>
</ClInclude>
<ClInclude Include="x11\cuda_x11_aes_alexis.cuh">
<Filter>Source Files\CUDA\x11</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<CudaCompile Include="cuda.cpp">
Expand Down Expand Up @@ -991,11 +994,27 @@
<CudaCompile Include="x16r\x16r.cu">
<Filter>Source Files\CUDA\x16r</Filter>
</CudaCompile>
<CudaCompile Include="qubit\qubit_luffa512_alexis.cu">
<Filter>Source Files\CUDA\qubit</Filter>
</CudaCompile>
<CudaCompile Include="x11\cuda_x11_shavite512_alexis.cu">
<Filter>Source Files\CUDA\x11</Filter>
</CudaCompile>
<CudaCompile Include="x11\cuda_x11_echo_alexis.cu">
<Filter>Source Files\CUDA\x11</Filter>
</CudaCompile>
<CudaCompile Include="x15\cuda_x14_shabal512_alexis.cu">
<Filter>Source Files\CUDA\x15</Filter>
</CudaCompile>
<CudaCompile Include="x13\cuda_x13_fugue512_alexis.cu">
<Filter>Source Files\CUDA\x13</Filter>
</CudaCompile>
</ItemGroup>
<ItemGroup>
<Image Include="res\ccminer.ico">
<Filter>Ressources</Filter>
</Image>
<Image Include="res\icon2.ico" />
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="res\ccminer.rc">
Expand Down

0 comments on commit cd0e281

Please sign in to comment.