-
Notifications
You must be signed in to change notification settings - Fork 20
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
Prepare CUTEst.jl for single and quadruple precision #353
Prepare CUTEst.jl for single and quadruple precision #353
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #353 +/- ##
===========================================
- Coverage 89.11% 60.66% -28.46%
===========================================
Files 5 8 +3
Lines 790 1388 +598
===========================================
+ Hits 704 842 +138
- Misses 86 546 +460 ☔ View full report in Codecov by Sentry. |
4df0046
to
2c95975
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @amontoison, looking good. Just some small comments
global cutest_instances_single = 0 | ||
global cutest_instances_double = 0 | ||
global cutest_instances_quadruple = 0 | ||
global cutest_lib_single = C_NULL | ||
global cutest_lib_double = C_NULL | ||
global cutest_lib_quadruple = C_NULL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we should at some point create a structure for this? That could be an issue with the tag good first issue
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added a SIF demuxer in the latest version of CUTEst such that we don't need anymore to update the global variables.
The issue is that package was not updated since long time we need many modifications if we want to easily upgrade it.
@@ -226,7 +226,7 @@ function CUTEstModel( | |||
nnzj = nnzj[] |> Int | |||
nnzh = nnzh[] |> Int | |||
|
|||
work = Vector{Int32}(undef, ncon) | |||
work = Vector{Float64}(undef, ncon) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you add a one-line comment for this vector?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should add two vectors in the structure (one of size nvar
and another of size ncon
). We need these kind of buffer / workspace for a lot of CUTEst routines.
b6ddce9
to
e8ec19f
Compare
e8ec19f
to
22d8487
Compare
Should be merged after #344, #349, #350, #351 and #352