CUTEst.jl icon indicating copy to clipboard operation
CUTEst.jl copied to clipboard

Single precision update

Open abelsiqueira opened this issue 5 years ago • 3 comments

Tried updating #177, but there are some errors. Maybe ELFUN.f and similar are not multipre precision?

abelsiqueira avatar Mar 13 '19 15:03 abelsiqueira

I was working on this too and I observe segfaults. ELFUN, etc., are always double precision. I have to try and write a single precision Fortran driver to see if that works.

dpo avatar Mar 13 '19 16:03 dpo

Sorry, forgot to say I had segfaults too. The simplest segfault was something like

nlp = CUTEstModel("ROSENBR")
io_err = Cint[0]
nvar = 2
x = Cfloat[-1.2; 1.0]
f = Cfloat[0]
ccall(dlsym(CUTEst.cutest_lib_single, :cutest_ufn_), Nothing,
      (Ptr{Int32}, Ref{Int32}, Ptr{Cfloat}, Ptr{Cfloat}),
      io_err, nvar, x, f)

abelsiqueira avatar Mar 13 '19 16:03 abelsiqueira

Same here. Decoding the problem with --single has no effect. I don't think the problem is in the Julia interface.

dpo avatar Mar 13 '19 16:03 dpo

@abelsiqueira I merged your modifications in #371

amontoison avatar Aug 21 '24 05:08 amontoison