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

ensure threading is disabled where not allowed #780

Closed

Conversation

IanButterworth
Copy link
Sponsor Member

@IanButterworth IanButterworth commented Feb 2, 2023

It seems like threading might not be allowed/expected on 1.9+ in some of these stages, which was causing #778.
@vtjnash is that right?

This fixes/patches #778 in cases where the user has JULIA_NUM_THREADS set to > 1

Testing locally, this fixes it in the sense that CPU load goes down to 100% per precompile task.

However, precompilation still takes a lot longer than it should. It seems like the 1 active thread is spinning or something

@codecov
Copy link

codecov bot commented Feb 2, 2023

Codecov Report

Merging #780 (b8eb796) into master (8e4c03c) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master     #780   +/-   ##
=======================================
  Coverage   83.00%   83.00%           
=======================================
  Files           3        3           
  Lines         665      665           
=======================================
  Hits          552      552           
  Misses        113      113           
Impacted Files Coverage Δ
src/PackageCompiler.jl 93.11% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@IanButterworth
Copy link
Sponsor Member Author

This is the wrong approach because threads should always respect what the user requested

@IanButterworth IanButterworth deleted the ib/set_1_thread branch February 2, 2023 20:57
@JeffBezanson
Copy link
Sponsor Member

I don't think this is necessarily wrong --- we can certainly choose how many threads to use in a process that we spawn for the purpose of building a system image.

@IanButterworth
Copy link
Sponsor Member Author

As discussed, a proposal to fix this upstream JuliaLang/julia#48592

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.

None yet

2 participants