From 2673224961e4444337db58163cf5209708e81cd0 Mon Sep 17 00:00:00 2001 From: Takuya Iwanaga Date: Tue, 9 Jan 2024 09:44:38 +1100 Subject: [PATCH] Disable precompilation workload for now --- src/ADRIA.jl | 58 ++++++++++++++++++++++++++-------------------------- 1 file changed, 29 insertions(+), 29 deletions(-) diff --git a/src/ADRIA.jl b/src/ADRIA.jl index 386ad37c8..aa898b7b4 100644 --- a/src/ADRIA.jl +++ b/src/ADRIA.jl @@ -167,34 +167,34 @@ if ccall(:jl_generating_output, Cint, ()) == 1 end -@setup_workload begin - # Putting some things in `setup` can reduce the size of the - # precompile file and potentially make loading faster. - # ADRIA_DIR = pkgdir(ADRIA) - # EXAMPLE_DOMAIN_PATH = joinpath(ADRIA_DIR, "examples", "Example_domain") - - @compile_workload begin - - # Force precompiling of code that handles distributed infrastructure - addprocs(1) - @everywhere 1 + 1 - - # Compile progress bar - # f() = begin - # @showprogress 1 for _ in 1:10 - # end - # end - # b = redirect_stdout(f, devnull) - - # dom = ADRIA.load_domain(EXAMPLE_DOMAIN_PATH, "45") - # ADRIA.sample(dom, 16) - # ADRIA.model_spec(dom) - - # ENV["ADRIA_DEBUG"] = "false" - # p_df = ADRIA.param_table(dom) - # rs1 = ADRIA.run_scenario(dom, p_df[1, :]) - # delete!(ENV, "ADRIA_DEBUG") - end -end +# @setup_workload begin +# # Putting some things in `setup` can reduce the size of the +# # precompile file and potentially make loading faster. +# # ADRIA_DIR = pkgdir(ADRIA) +# # EXAMPLE_DOMAIN_PATH = joinpath(ADRIA_DIR, "examples", "Example_domain") + +# @compile_workload begin + +# # Force precompiling of code that handles distributed infrastructure +# addprocs(1) +# @everywhere 1 + 1 + +# # Compile progress bar +# # f() = begin +# # @showprogress 1 for _ in 1:10 +# # end +# # end +# # b = redirect_stdout(f, devnull) + +# # dom = ADRIA.load_domain(EXAMPLE_DOMAIN_PATH, "45") +# # ADRIA.sample(dom, 16) +# # ADRIA.model_spec(dom) + +# # ENV["ADRIA_DEBUG"] = "false" +# # p_df = ADRIA.param_table(dom) +# # rs1 = ADRIA.run_scenario(dom, p_df[1, :]) +# # delete!(ENV, "ADRIA_DEBUG") +# end +# end end