Skip to content

Don't use cuda just because cuda is loaded #761

@hexaeder

Description

@hexaeder

#733 introduced cuda offloading based on

usecuda() = Base.get_extension(@__MODULE__, :LinearSolveCUDAExt) !== nothing

That is problematic, because it es possible to have CUDA in your env while cuda is not usable. I think is allways necessary to check `CUDA.functional() for that.

I recently started getting errors in CI because i have CUDA in my test env (filtering my testes based of CUDA.fuctional).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions