Skip to content

Handle cudaErrorInsufficientDriver equally to cudaErrorNoDevice #4251

@JAicewizard

Description

@JAicewizard

It is easy to accidentally attempt to run code only intended for devices with GPUs on a device without a GPU.
To prevent catastrophic crashes faiss handles cudaErrorNoDevice gracefully in getNumDevices. I would propose that cudaErrorInsufficientDriver is handled equally, as it also indicates no device is available. (resulting in an exception in code down the line of course, but not an abort() as is right now.)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions