Skip to content
This repository was archived by the owner on Jan 11, 2026. It is now read-only.

Commit cb53f54

Browse files
committed
Merge branch 'windows' into cuda9
2 parents 156edc2 + bd0714e commit cb53f54

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

ccminer.cpp

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2751,6 +2751,23 @@ int main(int argc, char *argv[])
27512751
printf("CUDA support by Christian Buchner, Christian H. and DJM34\n");
27522752
printf("Includes optimizations implemented by sp-hash, klaust, tpruvot and tsiv.\n\n");
27532753

2754+
#ifdef WIN32
2755+
if(CUDART_VERSION == 8000 && _MSC_VER > 1900)
2756+
printf("WARNING! CUDA 8 is not compatible with Visual Studio versions newer than 2015\n\n");
2757+
#endif
2758+
#if !defined __clang__ && defined __GNUC__
2759+
if(CUDART_VERSION == 8000 && __GNUC__ > 5)
2760+
{
2761+
printf("WARNING! GCC %d IS NOT COMPATIBLE WITH CUDA 8!\n");
2762+
printf("PLEASE USE GCC 5\n");
2763+
}
2764+
if((CUDART_VERSION == 9000 || CUDART_VERSION == 9010) && __GNUC__ > 6)
2765+
{
2766+
printf("WARNING! GCC %d IS NOT COMPATIBLE WITH CUDA 9!\n");
2767+
printf("PLEASE USE GCC 6\n\n");
2768+
}
2769+
#endif
2770+
27542771
rpc_user = strdup("");
27552772
rpc_pass = strdup("");
27562773

0 commit comments

Comments
 (0)