Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/Manifest.toml
/docs/Manifest.toml
/docs/build/
.ipynb_checkpoints
.vscode
Manifest.toml
Manifest-v*.toml
LocalPreferences.toml
14 changes: 14 additions & 0 deletions devenv/Project.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[deps]
BenchmarkTools = "6e4b80f9-dd63-53aa-95a3-0cdb28fa8baf"
Cthulhu = "f68482b8-f384-11e8-15f7-abe071a5a75f"
HEPExampleProject = "f779019a-d216-4ac1-8c1a-8c09799cc4e6"
Makie = "ee78f7c6-11fb-53f2-987a-cfe4a2b5a57a"
Plots = "91a5bcdd-55d7-5caf-9e0b-520d859cae80"
QuadGK = "1fd47b50-473d-5c70-9696-f719f8f3bcdc"
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
RecipesBase = "3cdcf5f2-1ef4-517c-9805-6587b60abb01"
SafeTestsets = "1bc83da4-3b8d-516f-aca4-4fe02f6d838f"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[sources]
HEPExampleProject = {path = ".."}
11 changes: 11 additions & 0 deletions devenv/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Julia development environment

This directory contains a Julia project environments `cpu` and `cuda`
that can be used when developing HEPExampleProject with Julia >= v1.11.
It contains all direct, test and doc-gen dependencies of HEPExampleProject,
plus BenchmarkTools and Cthulhu and JLD2 (for benchmarking and debugging).

Note: This environment can't be used with Julia versions <= v1.10, as it
use a `[sources]` section in the `Project.toml` to ensure HEPExampleProject
is loaded from the local source directory, this Pkg feature was introduced
in Julia v1.11.
2 changes: 2 additions & 0 deletions docs/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
build/
site/
12 changes: 5 additions & 7 deletions juliac/make.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,9 @@ julia -e 'exit(VERSION >= v"1.12" ? 0 : 1)' || (
exit 1
)

# Binaries generated by juliac may segfault if JULIA_CPU_TARGET is set:
unset JULIA_CPU_TARGET

jlbindir=`julia -e 'println(dirname(Sys.BINDIR))'`

julia --project=. -e 'import Pkg; Pkg.instantiate()'
(command -v juliac > /dev/null) && echo OK || (
echo "ERROR: juliac not found on \$PATH. Please install the JuliaC app (see https://github.com/JuliaLang/juliaC.jl)" >&2
exit 1
)

julia --project=. "$jlbindir/share/julia/juliac/juliac.jl" --experimental --trim=unsafe-warn --output-exe hepexample hepexample.jl
juliac --project="." --experimental --trim=safe --output-exe hepexample hepexample.jl