Fix version checking.

This commit is contained in:
castano 2008-12-16 20:27:18 +00:00
parent d787b30379
commit d827cee863

View File

@ -83,13 +83,13 @@ static bool isCudaDriverAvailable(uint version)
return false; return false;
} }
if (version > 2000) if (version >= 2000)
{ {
void * address = nvcuda.bindSymbol("cuStreamCreate"); void * address = nvcuda.bindSymbol("cuStreamCreate");
if (address == NULL) return false; if (address == NULL) return false;
} }
if (version > 2010) if (version >= 2010)
{ {
void * address = nvcuda.bindSymbol("cuLoadDataEx"); void * address = nvcuda.bindSymbol("cuLoadDataEx");
if (address == NULL) return false; if (address == NULL) return false;