Skip to content

Commit

Permalink
Merge pull request #419 from lemauee/lemauee/compileRoMEPlotting
Browse files Browse the repository at this point in the history
Added scripts to compile sysimages including RoMEPlotting or its deps
  • Loading branch information
dehann authored Apr 27, 2021
2 parents 1e29807 + 56b14bd commit 1a34ca9
Show file tree
Hide file tree
Showing 6 changed files with 63 additions and 0 deletions.
15 changes: 15 additions & 0 deletions compileRoME/Gadfly/Project.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[deps]
ApproxManifoldProducts = "9bbbb610-88a1-53cd-9763-118ce10c1f89"
Compose = "a81c6b42-2e10-5240-aca2-a61377ecd94b"
CoordinateTransformations = "150eb455-5306-5404-9cee-2592286d6298"
DistributedFactorGraphs = "b5cc3c7e-6572-11e9-2517-99fb8daf2f04"
Gadfly = "c91e804a-d5a3-530f-b6f0-dfbca275c004"
GraphPlot = "a2cc645c-3eea-5389-862e-a155d0052231"
ImageMagick = "6218d12a-5da1-5696-b52f-db25d2ecc6d1"
IncrementalInference = "904591bb-b899-562f-9e6f-b8df64c7d480"
KernelDensityEstimate = "2472808a-b354-52ea-a80e-1658a3c6056d"
LightGraphs = "093fc24a-ae57-5d10-9952-331d41423f4d"
RoME = "91fb55c2-4c03-5a59-ba21-f4ea956187b8"
Rotations = "6038ab10-8711-5258-84ad-4b1120ba62dc"
TransformUtils = "9b8138ad-1b09-5408-aa39-e87ed6d21b63"
VisualRegressionTests = "34922c18-7c2a-561c-bac1-01e79b2c4c92"
14 changes: 14 additions & 0 deletions compileRoME/Gadfly/compileRoMEGadflySysimage.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
using Pkg

Pkg.activate(@__DIR__)
Pkg.instantiate()

using PackageCompiler

cd(@__DIR__)

create_sysimage([:RoME,:Gadfly,:GraphPlot,:DistributedFactorGraphs,:Compose], sysimage_path="RoMEGadflySysimage.so", precompile_execution_file="precompile_triggers_gadfly.jl")


## to use RoME Gadfly and the associated Pkgs with the newly created sysimage, start julia with:
# julia -J RoMEGadflySysimage.so
6 changes: 6 additions & 0 deletions compileRoME/Gadfly/precompile_triggers_gadfly.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
using GraphPlot, Compose #, ImageMagick, LightGraphs # RoME, DistributedFactorGraphs, Gadfly
# include(joinpath(pkgdir(RoME), "test", "runtests.jl")) # February 2021: some tests fail here
# include(joinpath(pkgdir(Gadfly), "test", "runtests.jl")) # February 2021: some tests fail here
include(joinpath(pkgdir(GraphPlot), "test", "runtests.jl"))
# include(joinpath(pkgdir(DistributedFactorGraphs), "test", "runtests.jl")) # February 2021: CI already errors?
# include(joinpath(pkgdir(Compose), "test", "runtests.jl")) # February 2021: some tests fail here
10 changes: 10 additions & 0 deletions compileRoME/RoMEPlotting/Project.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[deps]
ApproxManifoldProducts = "9bbbb610-88a1-53cd-9763-118ce10c1f89"
CoordinateTransformations = "150eb455-5306-5404-9cee-2592286d6298"
DistributedFactorGraphs = "b5cc3c7e-6572-11e9-2517-99fb8daf2f04"
IncrementalInference = "904591bb-b899-562f-9e6f-b8df64c7d480"
KernelDensityEstimate = "2472808a-b354-52ea-a80e-1658a3c6056d"
RoME = "91fb55c2-4c03-5a59-ba21-f4ea956187b8"
RoMEPlotting = "238d586b-a4bf-555c-9891-eda6fc5e55a2"
Rotations = "6038ab10-8711-5258-84ad-4b1120ba62dc"
TransformUtils = "9b8138ad-1b09-5408-aa39-e87ed6d21b63"
15 changes: 15 additions & 0 deletions compileRoME/RoMEPlotting/compileRoMEPlottingSysimage.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
using Pkg

Pkg.activate(@__DIR__)
Pkg.instantiate()

using PackageCompiler

cd(@__DIR__)

create_sysimage([:RoME,:RoMEPlotting], sysimage_path="RoMEPlottingSysimage.so", precompile_execution_file="precompile_triggers_plotting.jl")


## to use RoME and RoMEPlotting with the newly created sysimage, start julia with:
# julia -J RoMEPlottingSysimage.so
# February 2021: starting julia with the sysimage crashes
3 changes: 3 additions & 0 deletions compileRoME/RoMEPlotting/precompile_triggers_plotting.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import RoME
#include(joinpath(pkgdir(RoME), "test", "runtests.jl")) # February 2021: some tests fail here
#include(joinpath(pkgdir(RoMEPlotting), "test", "runtests.jl"))

0 comments on commit 1a34ca9

Please sign in to comment.