Skip to content

Commit b2efa3c

Browse files
authored
Update JULIA_CPU_TARGET for precompiling packages (#2104)
* Update JULIA_CPU_TARGET for precompiling packages * Update links * Also update link for aarch64
1 parent b9553a8 commit b2efa3c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

images/minimal-notebook/setup-scripts/setup-julia-packages.bash

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,20 @@ set -exuo pipefail
1111
# container runs on a host that's the same architecture, but a *different*
1212
# generation of CPU than what the build host was, the precompilation is useless
1313
# and Julia takes a long long time to start up. This specific multitarget comes
14-
# from https://github.com/JuliaCI/julia-buildkite/blob/70bde73f6cb17d4381b62236fc2d96b1c7acbba7/utilities/build_envs.sh#L20-L76,
14+
# from https://github.com/JuliaCI/julia-buildkite/blob/9f354745a1f2bf31a5952462aa1ff2d869507cb8/utilities/build_envs.sh#L20-L82,
1515
# and may need to be updated as new CPU generations come out.
1616
# If the architecture the container runs on is different,
1717
# precompilation may still have to be re-done on first startup - but this
1818
# *should* catch most of the issues. See
1919
# https://github.com/jupyter/docker-stacks/issues/2015 for more information
2020
if [ "$(uname -m)" == "x86_64" ]; then
21-
# See https://github.com/JuliaCI/julia-buildkite/blob/70bde73f6cb17d4381b62236fc2d96b1c7acbba7/utilities/build_envs.sh#L24
21+
# See https://github.com/JuliaCI/julia-buildkite/blob/9f354745a1f2bf31a5952462aa1ff2d869507cb8/utilities/build_envs.sh#L23
2222
# for an explanation of these options
23-
export JULIA_CPU_TARGET="generic;sandybridge,-xsaveopt,clone_all;haswell,-rdrnd,base(1)"
23+
export JULIA_CPU_TARGET="generic;sandybridge,-xsaveopt,clone_all;haswell,-rdrnd,base(1);x86-64-v4,-rdrnd,base(1)"
2424
elif [ "$(uname -m)" == "aarch64" ]; then
25-
# See https://github.com/JuliaCI/julia-buildkite/blob/70bde73f6cb17d4381b62236fc2d96b1c7acbba7/utilities/build_envs.sh#L54
25+
# See https://github.com/JuliaCI/julia-buildkite/blob/9f354745a1f2bf31a5952462aa1ff2d869507cb8/utilities/build_envs.sh#L56
2626
# for an explanation of these options
27-
export JULIA_CPU_TARGET="generic;cortex-a57;thunderx2t99;carmel"
27+
export JULIA_CPU_TARGET="generic;cortex-a57;thunderx2t99;carmel,clone_all;apple-m1,base(3);neoverse-512tvb,base(3)"
2828
fi
2929

3030
# Install base Julia packages

0 commit comments

Comments
 (0)