Commit 4930cd8c authored by Robert T. McGibbon's avatar Robert T. McGibbon
Browse files

Update CudaContext.cpp

parent 43926c46
...@@ -1408,7 +1408,7 @@ vector<int> CudaContext::getDevicePrecedence() { ...@@ -1408,7 +1408,7 @@ vector<int> CudaContext::getDevicePrecedence() {
if (major == 1 && minor < 2) if (major == 1 && minor < 2)
continue; continue;
if ((useDoublePrecision || useMixedPrecision) && (major*0.1*minor < 1.3)) if ((useDoublePrecision || useMixedPrecision) && (major+0.1*minor < 1.3))
continue; continue;
CHECK_RESULT(cuDeviceGetAttribute(&clock, CU_DEVICE_ATTRIBUTE_CLOCK_RATE, thisDevice)); CHECK_RESULT(cuDeviceGetAttribute(&clock, CU_DEVICE_ATTRIBUTE_CLOCK_RATE, thisDevice));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment