Skip to content

Warning when precompiling #80

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

Open
ufechner7 opened this issue Aug 25, 2022 · 1 comment
Open

Warning when precompiling #80

ufechner7 opened this issue Aug 25, 2022 · 1 comment

Comments

@ufechner7
Copy link

When I am precompiling a project that depends on InMemoryDatasets I get the following warning, even though I started Julia with the option -t auto:

julia> using CanAnalyzer
[ Info: Precompiling CanAnalyzer [fbb474e2-a87e-4494-be2e-a3a334a889f8]
┌ Warning: Julia started with single thread, to enable multithreaded functionalities in InMemoryDatasets.jl start Julia with multiple threads.
└ @ InMemoryDatasets ~/.julia/packages/InMemoryDatasets/cs8F2/src/InMemoryDatasets.jl:205

This should not happen.

@sl-solution
Copy link
Owner

I think, this is the Julia issue. When a Julia session is started with -t auto, only that session uses multi threading, however, the precompiling process call other Julia sessions which are not aware of -t auto. As a workaround:

  • Set the environment variable JULIA_NUM_THREADS, or
  • Set the environment variable IMD_WARN_THREADS=0 to suppress the IMD warning.

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

No branches or pull requests

2 participants