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

Generate Julia wrappers with Clang.jl #332

Merged
merged 3 commits into from
Aug 14, 2024

Conversation

amontoison
Copy link
Member

@amontoison amontoison commented Aug 14, 2024

  • Generate Julia wrappers for single and double precision of CUTEst

@amontoison amontoison requested a review from tmigot August 14, 2024 21:45
Copy link

codecov bot commented Aug 14, 2024

Codecov Report

Attention: Patch coverage is 0.58480% with 340 lines in your changes missing coverage. Please review.

Project coverage is 61.66%. Comparing base (f2ad6a4) to head (c2ae9d7).
Report is 11 commits behind head on main.

Files Patch % Lines
src/libcutest.jl 0.00% 340 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##             main     #332       +/-   ##
===========================================
- Coverage   89.11%   61.66%   -27.46%     
===========================================
  Files           5        6        +1     
  Lines         790     1132      +342     
===========================================
- Hits          704      698        -6     
- Misses         86      434      +348     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

gen/wrapper.jl Outdated Show resolved Hide resolved
.gitignore Outdated Show resolved Hide resolved
@@ -215,8 +218,8 @@ function sifdecoder(
end
run(`mv OUTSDIF.d $outsdif`)
delete_temp_files(suffix)
global cutest_lib =
Libdl.dlopen(libname, Libdl.RTLD_NOW | Libdl.RTLD_DEEPBIND | Libdl.RTLD_GLOBAL)
global cutest_lib = Libdl.dlopen(libname, Libdl.RTLD_NOW | Libdl.RTLD_DEEPBIND | Libdl.RTLD_GLOBAL)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will be modified again by the formatter, no?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, but I modified the name of the variable before that I reverted it.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The auto formater will probably fix other things.

@@ -0,0 +1,1008 @@
function CUTEst_malloc(object, length, s)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The follow-up PR is to use this interface in the code, right? I guess most of https://github.com/JuliaSmoothOptimizers/CUTEst.jl/blob/main/src/core_interface.jl will be updated then, and you can reuse the docstrings

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, that's the plan.
I already did the modification on my laptop.
It will open a PR for you.
It should be easy to implement CUTEstModel in single and quadruple precision now.

@amontoison amontoison merged commit fff8ac8 into JuliaSmoothOptimizers:main Aug 14, 2024
10 of 12 checks passed
@amontoison amontoison deleted the upgrade_cutest branch August 14, 2024 22:13
@amontoison
Copy link
Member Author

Thanks for the review @tmigot!

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

Successfully merging this pull request may close these issues.

2 participants