Closed
Description
using Test, NLPModels, CUDA, NLPModelsModifiers, NLPModelsTest
nlp = LINSV(CuArray{Float64})
SlackModel(nlp) # fails
fails, because we expected NLPModelMeta{S, T} if nlp is of type AbstractNLPModel{S, T} (see
NLPModelsModifiers.jl/src/slack-model.jl
Line 70 in a9fa774
However, nlp is {Float64, CuArray{Float64}} while the "slack" meta is {Float64, CuArray{Float64, 1, CUDA.Mem.DeviceBuffer}}
slackMeta = NLPModelsModifiers.slack_meta(meta) # https://github.com/JuliaSmoothOptimizers/NLPModelsModifiers.jl/blob/a9fa77496346fd5da171535295d949b570ac2f5a/src/slack-model.jl#L115
@amontoison an opinion on this? #114 is a suggestion to fix this.
Metadata
Metadata
Assignees
Labels
No labels