8000 Add minimum driver version check to allow minor version compatibility… · arrayfire/arrayfire@5979134 · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 5979134

Browse files
Add minimum driver version check to allow minor version compatibility. (#3648)
* Add minimum driver version check to allow minor version compatibility. * Simpler method of checking for nvidia driver cuda minor version compatibility.
1 parent 83f4bb6 commit 5979134

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/backend/cuda/device_manager.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,10 @@ void DeviceManager::checkCudaVsDriverVersion() {
511511

512512
debugRuntimeCheck(getLogger(), runtime, driver);
513513

514-
if (runtime > driver) {
514+
int runtime_major = runtime / 1000;
515+
int driver_major = driver / 1000;
516+
517+
if (runtime_major > driver_major) {
515518
string msg =
516519
"ArrayFire was built with CUDA {} which requires GPU driver "
517520
"version {} or later. Please download and install the latest "

0 commit comments

Comments
 (0)
0