Questions tagged [packagecompiler.jl]

PackageCompiler.jl package to precompile packages in Julia language.

PackageCompiler.jl package to precompile packages in Julia language. Allows to create standalone binary applications (without dependency on Julia's REPL).

20 questions
9
votes
2 answers

How to eliminate JIT overhead in a Julia executable (with MWE)

I'm using PackageCompiler hoping to create an executable that eliminates just-in-time compilation overhead. The documentation explains that I must define a function julia_main to call my program's logic, and write a "snoop file", a script that calls…
Philip Swannell
  • 895
  • 7
  • 17
8
votes
2 answers

Distribute a standalone Python software with Julia dependencies

I have a software that is mostly written in Python and, for now, I'm using PyInstaller to bundle and distribute the software in a user-friendly way (it's part of my CI pipeline, for Linux and Windows). However, my performance is terrible and I want…
Héliton Martins
  • 1,143
  • 10
  • 25
4
votes
0 answers

Parallel processing not working using create_app in julia

So I'm using the create_app() method in PackageCompiler to create an app of my julia package. It works except that the original package could run on multiple processes and after it's turned into and app it doesn't anymore. I put this at the…
jiquera
  • 41
  • 2
4
votes
1 answer

How to use julia's PackageCompiler to build a quick launch environment for PlotStats?

I want to use 'DataFrames,CSV,StatsPlots' packages without waiting time after reboot machine, I'm trying to use PackageCompiler, but the README or help is hard to understand. using using PackageCompiler syso, sys =…
Daniel YC Lin
  • 15,050
  • 18
  • 63
  • 96
4
votes
0 answers

How do I compile Julia natively for my CPU?

I have installed Julia a while ago and I realized that it used by default a pre-compiled binary. After reading about it, I realized that I could compile it natively using the PackageCompiler module. Indeed, upon loading the module, I get this…
TomCho
  • 3,204
  • 6
  • 32
  • 83
3
votes
0 answers

Creating system image with precompilation for Scikit Learn in Julia

I used Package compiler package to build the system image for the ScikitLearn package. However, I am unable to add precompilation for the library in the system image. My Code snippet to build the file is: julia> using Package Compiler julia> @time…
Mohammad Saad
  • 1,935
  • 10
  • 28
2
votes
1 answer

How to increase the limit on the size of the Julia sysimage?

I'm compiling a Julia system image using the PackageCompiler.jl package. And it always worked out for me. But with a large number of libraries in the image, I get an error: ERROR: system image too large: sysimg.size is 546855112 but the limit is…
2
votes
0 answers

EXCEPTION_ACCESS_VIOLATION at 0x0 when calling dll compiled with Julia PackageCompiler

I am compiling Julia program as dll and trying to call from another program. The Julia program is as follows (I am planning to use commented out pkg): module pjname # using Statistics # using CSV # using DataFrames # using DSP # # using Plots #…
user31130
  • 63
  • 2
2
votes
2 answers

Julia Error: @ccallable: argument types must be concrete

I am new to Julia and trying to compile a function. My code is something like this and I get an error saying "@ccallable: argument types must be concrete" when I run the code. I also found this is because of the initial value I set to the…
user31130
  • 63
  • 2
2
votes
0 answers

What does it mean to "initialize the Julia runtime" when exporting compiled .dll or .so files for use in other langauges?

I'm trying to compile a usable .dll file from Julia to be used in Python as I've already written a large GUI in Python and need some fast optimization work done. Normally I would just call PyJulia or some "live" call, however this program needs to…
Will
  • 170
  • 10
2
votes
1 answer

using custom system image (from PackageCompiler.jl) in conjunction with MPI in Julia

I’ve been recently playing with the MPI wrappers for Julia (MPI.jl) – yesterday I built a dumb test problem in both C and Julia and was comparing performance, and Julia is pretty close to C which is impressive! I thought I might be able to close…
kirklong
  • 203
  • 1
  • 2
  • 9
2
votes
1 answer

PackageCompile Julia system image with local code

Seeking an understanding of Julia PackageCompiler. I am building a system image like this python3 -m julia.sysimage --script="pc.jl" foo.dylib and my precompile script (pc.jl) contains this module Foo bah() = "bah" end If I include pc.jl in the…
opus111
  • 2,744
  • 4
  • 25
  • 41
2
votes
0 answers

How to compile Julia to executable (Windows machine)

i have ran the below command and nothing works for me. juliac.jl -vae compile=all C:\PackageCompiler\examples\hello.jl Note: installed PackageCompiler.jl
phaneesh
  • 140
  • 1
  • 1
  • 7
2
votes
1 answer

MethodError at runtime for compiled version of a Julia application that otherwise runs fine

I have a Julia application that runs fine, but I want to make a compiled and more easily distributable version of it. As far as I understood, this is the job of PackageCompiler. I'm able to build the executable, and it runs fine when just asking it…
bli
  • 7,549
  • 7
  • 48
  • 94
1
vote
1 answer

Julia `julia --project` argument use

I learned of a way to run julia, so I can use the file structure of a package for my project. Namely julia --project inside my developement directory. With this I can load all projects structured like projectName/src/projectName.jl inside the same…
Baumwolle 25
  • 113
  • 5
1
2