Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quasi-Newton operators compatible with GPUs #327

Open
tmigot opened this issue May 1, 2024 · 0 comments
Open

Quasi-Newton operators compatible with GPUs #327

tmigot opened this issue May 1, 2024 · 0 comments

Comments

@tmigot
Copy link
Member

tmigot commented May 1, 2024

I am wondering how much work it would be to make QN operators compatible with GPUs (CuArray for instance)?

Typically, my use case would be something like this

using CUDA, NLPModels, NLPModelsModifiers, NLPModelsTest
V = CuArray{Float64}
nlp = NLSLC(V)

CUDA.allowscalar()
list_QN = [LBFGSModel, LSR1Model, DiagonalPSBModel, DiagonalAndreiModel, SpectralGradientModel]
lnlp = list[1](nlp)
x = nlp.meta.x0
v = copy(x)
Hv = similar(x)
hprod!(lnlp, x, v, Hv)

These model modifiers internally call the QN operators from LinearOperators.jl, e.g. op = LBFGSOperator(T, nlp.meta.nvar).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant