Skip to content

Commit

Permalink
small fix for RTX 3000 cards
Browse files Browse the repository at this point in the history
  • Loading branch information
KlausT committed Jan 28, 2022
1 parent bf3091a commit 5bd8273
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 14 deletions.
6 changes: 2 additions & 4 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,10 @@ endif
nvcc_ARCH = -gencode=arch=compute_61,code=sm_61
nvcc_ARCH += -gencode=arch=compute_60,code=sm_60
nvcc_ARCH += -gencode=arch=compute_52,code=sm_52
nvcc_ARCH += -gencode=arch=compute_50,code=sm_50
nvcc_ARCH += -gencode=arch=compute_37,code=sm_37
nvcc_ARCH += -gencode=arch=compute_35,code=sm_35
nvcc_ARCH += -gencode=arch=compute_70,code=sm_70
nvcc_ARCH += -gencode=arch=compute_75,code=sm_75
nvcc_ARCH += -gencode=arch=compute_80,code=sm_80
nvcc_ARCH += -gencode=arch=compute_86,code=sm_86

nvcc_FLAGS = $(nvcc_ARCH) @CUDA_INCLUDES@ -I. @CUDA_CFLAGS@
nvcc_FLAGS += $(JANSSON_INCLUDES)
Expand Down Expand Up @@ -141,7 +139,7 @@ skein.o: skein.cu
$(NVCC) $(nvcc_FLAGS) --maxrregcount=64 -o $@ -c $<

neoscrypt/cuda_neoscrypt.o: neoscrypt/cuda_neoscrypt.cu
$(NVCC) -gencode=arch=compute_61,code=sm_61 -gencode=arch=compute_60,code=sm_60 -gencode=arch=compute_52,code=sm_52 -gencode=arch=compute_50,code=sm_50 -gencode=arch=compute_35,code=sm_35 -gencode=arch=compute_37,code=sm_37 -gencode=arch=compute_70,code=sm_70 -gencode=arch=compute_75,code=sm_75 -gencode=arch=compute_86,code=sm_86 @CUDA_INCLUDES@ -I. @CUDA_CFLAGS@ -o $@ -c $<
$(NVCC) -gencode=arch=compute_61,code=sm_61 -gencode=arch=compute_60,code=sm_60 -gencode=arch=compute_52,code=sm_52 -gencode=arch=compute_70,code=sm_70 -gencode=arch=compute_75,code=sm_75 -gencode=arch=compute_86,code=sm_86 @CUDA_INCLUDES@ -I. @CUDA_CFLAGS@ -o $@ -c $<

neoscrypt/cuda_neoscrypt_tpruvot.o: neoscrypt/cuda_neoscrypt_tpruvot.cu
$(NVCC) -gencode=arch=compute_60,code=sm_60 -gencode=arch=compute_61,code=sm_61 -gencode=arch=compute_70,code=sm_70 -gencode=arch=compute_75,code=sm_75 -gencode=arch=compute_86,code=sm_86 @CUDA_INCLUDES@ -I. $(JANSSON_INCLUDES) @CUDA_CFLAGS@ -o $@ -c $<
6 changes: 3 additions & 3 deletions ccminer.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@
<MaxRegCount>80</MaxRegCount>
<PtxAsOptionV>false</PtxAsOptionV>
<Keep>true</Keep>
<CodeGeneration>compute_60,sm_60;compute_61,sm_61;compute_52,sm_52;compute_70,sm_70;compute_75,sm_75;compute_80,sm_80</CodeGeneration>
<CodeGeneration>compute_60,sm_60;compute_61,sm_61;compute_52,sm_52;compute_70,sm_70;compute_75,sm_75;compute_80,sm_80;compute_86,sm_86</CodeGeneration>
<Include>
</Include>
<TargetMachinePlatform>64</TargetMachinePlatform>
Expand Down Expand Up @@ -286,7 +286,7 @@
<CudaCompile Include="lyra2\lyra2REv3.cpp" />
<CudaCompile Include="neoscrypt\cuda_neoscrypt_tpruvot.cu">
<CodeGeneration Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">compute_52,sm_52;compute_50,sm_50;compute_35,sm_35;compute_37,sm_37</CodeGeneration>
<CodeGeneration Condition="'$(Configuration)|$(Platform)'=='Release|x64'">compute_86,sm_86;compute_75,sm_75;compute_70,sm_70;compute_61,sm_61;compute_52,sm_52;compute_50,sm_50;compute_35,sm_35;compute_37,sm_37</CodeGeneration>
<CodeGeneration Condition="'$(Configuration)|$(Platform)'=='Release|x64'">compute_86,sm_86;compute_75,sm_75;compute_70,sm_70;compute_61,sm_61;compute_52,sm_52</CodeGeneration>
</CudaCompile>
<CudaCompile Include="Sia\sia.cpp" />
<ClCompile Include="nvapi.cpp" />
Expand Down Expand Up @@ -434,7 +434,7 @@
<CudaCompile Include="Algo256\cuda_skein256.cu" />
<CudaCompile Include="neoscrypt\cuda_neoscrypt.cu">
<CodeGeneration Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">compute_52,sm_52;compute_50,sm_50;compute_35,sm_35;compute_37,sm_37;</CodeGeneration>
<CodeGeneration Condition="'$(Configuration)|$(Platform)'=='Release|x64'">compute_52,sm_52;compute_50,sm_50;compute_35,sm_35;compute_37,sm_37;compute_70,sm_70;compute_75,sm_75;compute_86,sm_86</CodeGeneration>
<CodeGeneration Condition="'$(Configuration)|$(Platform)'=='Release|x64'">compute_52,sm_52;compute_70,sm_70;compute_75,sm_75;compute_86,sm_86</CodeGeneration>
</CudaCompile>
<CudaCompile Include="neoscrypt\neoscrypt.cpp">
<CodeGeneration Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">compute_52,sm_52;compute_50,sm_50;compute_35,sm_35;compute_37,sm_37;</CodeGeneration>
Expand Down
9 changes: 2 additions & 7 deletions neoscrypt/neoscrypt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,7 @@ int scanhash_neoscrypt(bool stratum, int thr_id, uint32_t *pdata,
intensity = 256 * 64 * 5;
use_tpruvot = true;
}
else if (strstr(props.name, "3090"))
{
intensity = 256 * 64 * 32;
use_tpruvot = true; // benchmark needed
}
else if (strstr(props.name, "3080"))
else if (strstr(props.name, "RTX 3"))
{
intensity = 256 * 64 * 32;
use_tpruvot = true; // benchmark needed
Expand All @@ -76,7 +71,7 @@ int scanhash_neoscrypt(bool stratum, int thr_id, uint32_t *pdata,
intensity = 256 * 64 * 16;
use_tpruvot = true;
}
else if(strstr(props.name, "RTX"))
else if(strstr(props.name, "RTX 2"))
{
intensity = 256 * 64 * 16;
use_tpruvot = true; // benchmark needed
Expand Down

0 comments on commit 5bd8273

Please sign in to comment.