Skip to content

Commit 04bb5f1

Browse files
author
Patrick Häcker
committed
Do not inform user during precompilation
The current approach seems to have multiple disadvantages: - If the user only got `TensorOperatoins.jl` as a indirect dependency, the information seems to be completely useless - It's untypical to give information about a package during precompilation. That's what Readmes, docstrings or similar things are for - The user can't deactivate it. If I read the code correctly, even setting the preference to false would print the warning again So until a better solution is found, I think it makes sense to deactivate the precompile output.
1 parent b3f19b8 commit 04bb5f1

File tree

2 files changed

+1
-14
lines changed

2 files changed

+1
-14
lines changed

.vscode/settings.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{}

src/precompile.jl

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -123,18 +123,4 @@ if workload_enabled()
123123
precompile(tensoralloc_contract, (T, A, pA, Bool, B, pB, Bool, pAB, Val{false}))
124124
end
125125
end
126-
else
127-
@info """
128-
TensorOperations can optionally be instructed to precompile several functions, which can be used to reduce the time to first execution (TTFX).
129-
This is disabled by default as this can take a while on some machines, and is only relevant for contraction-heavy workloads.
130-
131-
To enable or disable precompilation, you can use the following script:
132-
133-
```julia
134-
using TensorOperations, Preferences
135-
set_preferences!(TensorOperations, "precompile_workload" => true; force=true)
136-
```
137-
138-
This will create a `LocalPreferences.toml` file next to your current `Project.toml` file to store this setting in a persistent way.
139-
"""
140126
end

0 commit comments

Comments
 (0)