Last active
October 30, 2018 15:28
-
-
Save nico202/b9f32cee5f771c2a578c41e61d5ebd34 to your computer and use it in GitHub Desktop.
Test julia precompilation determinism
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
n=$(pwd) | |
# The folder must be named always the same way | |
# Since the path is included in the .ji files | |
d=/tmp/my-julia-tmp-dir | |
mkdir -p $d | |
cd $d | |
HOME=$(realpath .) \julia --startup-file=no -q --depwarn=no -e 'using Pkg; Pkg.add("Lazy"); using Lazy' | |
ls -lah .julia/compiled/v1.0/Lazy/* | |
sha256sum .julia/compiled/v1.0/Lazy/* | |
cd $(pwd) | |
# echo $d | |
rm -rf $d |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment