File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -75,6 +75,20 @@ const costcache = LRU{Any,Any}(; maxsize=10^5)
7575using PackageExtensionCompat
7676function __init__ ()
7777 @require_extensions
78+
79+ @info """
80+ TensorOperations can optionally be instructed to precompile several functions, which can be used to reduce the time to first execution (TTFX).
81+ This is disabled by default as this can take a while on some machines, and is only relevant for contraction-heavy workloads.
82+
83+ To enable or disable precompilation, you can use the following script:
84+
85+ ```julia
86+ using TensorOperations, Preferences
87+ set_preferences!(TensorOperations, "precompile_workload" => true; force=true)
88+ ```
89+
90+ This will create a `LocalPreferences.toml` file next to your current `Project.toml` file to store this setting in a persistent way.
91+ """ maxlog = 1
7892end
7993
8094include (" precompile.jl" )
You can’t perform that action at this time.
0 commit comments