Skip to content

Commit

Permalink
Disable precompilation workload for now
Browse files Browse the repository at this point in the history
  • Loading branch information
ConnectedSystems committed Jan 8, 2024
1 parent f4c0f7a commit 2673224
Showing 1 changed file with 29 additions and 29 deletions.
58 changes: 29 additions & 29 deletions src/ADRIA.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 2673224

Please sign in to comment.