Check version properly.
This commit is contained in:
parent
931580edc5
commit
a03411e451
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user