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

Enh/use jlls #31

Merged
merged 2 commits into from
Aug 11, 2020
Merged

Enh/use jlls #31

merged 2 commits into from
Aug 11, 2020

Conversation

kalmarek
Copy link
Owner

@kalmarek kalmarek commented Aug 11, 2020

I'm not sure if libarb is exported from Arb_jll, but this seems to work? should we add const libarb = Arb_jll.libarb just below using Arb_jll?

@codecov
Copy link

codecov bot commented Aug 11, 2020

Codecov Report

Merging #31 into master will increase coverage by 0.81%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #31      +/-   ##
==========================================
+ Coverage   95.92%   96.73%   +0.81%     
==========================================
  Files           9        9              
  Lines         270      276       +6     
==========================================
+ Hits          259      267       +8     
+ Misses         11        9       -2     
Flag Coverage Δ
#unittests 96.73% <ø> (+0.81%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/Arblib.jl 100.00% <ø> (ø)
src/arb_types.jl 100.00% <0.00%> (ø)
src/arbcall.jl 98.90% <0.00%> (+1.14%) ⬆️
src/show.jl 95.12% <0.00%> (+2.43%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 52ead4b...e3023b3. Read the comment docs.

@kalmarek kalmarek linked an issue Aug 11, 2020 that may be closed by this pull request
@saschatimme
Copy link
Collaborator

I guess, if this works, then there is no need to define this additionally :)

Project.toml Outdated Show resolved Hide resolved
@saschatimme saschatimme mentioned this pull request Aug 11, 2020
@saschatimme saschatimme merged commit 54a5a50 into master Aug 11, 2020
@saschatimme saschatimme deleted the enh/use_jlls branch August 11, 2020 12:22
@kalmarek
Copy link
Owner Author

ok, but now my question is what is the purpose of LoadFlint.jl? It just loads FLINT_jll and sets the memory allocation functions, but so does FLINT_jll. Compare:
https://github.com/JuliaBinaryWrappers/FLINT_jll.jl/blob/22298d2bc6788ae72cb4ac921d2a71c8593b876a/src/wrappers/x86_64-linux-gnu.jl#L54

https://github.com/oscar-system/LoadFlint.jl/blob/6012ee2c7f553b6cd5aff69da66433a1f621acae/src/LoadFlint.jl#L46

?

@saschatimme
Copy link
Collaborator

I think this is relevant oscar-system/LoadFlint.jl#7

@kalmarek
Copy link
Owner Author

I can't really read through that thread, can you summarize what is the difference? I just tested with only FLINT_jll, all 1.3, 1.4 and 1.5 pass.

@Joel-Dahne
Copy link
Collaborator

Does it work to load for example Nemo and Arblib at the same time if we use Flint_jll instead?

@kalmarek
Copy link
Owner Author

please tell me what is the real difference between those __init__s 🤣
https://github.com/JuliaBinaryWrappers/FLINT_jll.jl/blob/22298d2bc6788ae72cb4ac921d2a71c8593b876a/src/wrappers/x86_64-linux-gnu.jl#L29
https://github.com/oscar-system/LoadFlint.jl/blob/6012ee2c7f553b6cd5aff69da66433a1f621acae/src/LoadFlint.jl#L20

to me they're doing the same thing, but LoadFlint also tries to avoid several libgmps loaded. I don't think it's relevant for julia>=1.3 since there we explicitly using GMP_jll.

Also based on the discussion in the thread linked by @saschatimme (see oscar-system/LoadFlint.jl#7 (comment)) it seems that LoadFlint will use the broadest compat on FLINT_jll and it's up to the packages using it to specify the compat versions.
Maybe then we still need to explicitly depend on FLINT_jll for particular version?

@saschatimme saschatimme mentioned this pull request Aug 13, 2020
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.

Revamp binary dependency to use JLLs
3 participants