Skip to content

Commit

Permalink
only use apple-m1 target for macos (#354)
Browse files Browse the repository at this point in the history
  • Loading branch information
IanButterworth authored May 23, 2024
1 parent be14dbe commit 0c1c585
Showing 1 changed file with 27 additions and 15 deletions.
42 changes: 27 additions & 15 deletions utilities/build_envs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ if buildkite-agent meta-data exists BUILDKITE_JULIA_BRANCH; then
fi

# Determine JULIA_CPU_TARGETS for different architectures
JUlIA_CPU_TARGETS=()
JULIA_CPU_TARGETS=()
case "${ARCH?}" in
x86_64)
JULIA_CPU_TARGETS+=(
Expand Down Expand Up @@ -54,20 +54,32 @@ case "${ARCH?}" in
)
;;
aarch64)
JULIA_CPU_TARGETS+=(
# Absolute base aarch64 feature set
"generic"
# Cortex A57, Example: NVIDIA Jetson TX1, Jetson Nano
"cortex-a57"
# Cavium ThunderX2T99, a common server architecture
"thunderx2t99"
# NVidia Carmel, e.g. Jetson AGX Xavier; serves as a baseline for later architectures
"carmel,clone_all"
# Apple M1
"apple-m1,base(3)"
# Vector-length-agnostic common denominator between Neoverse V1 and V2, recent Arm server architectures
"neoverse-512tvb,base(3)"
)
case "${OS?}" in
macos)
JULIA_CPU_TARGETS+=(
# Absolute base aarch64 feature set
"generic"
# Apple M1
"apple-m1,clone_all"
)
;;
*)
JULIA_CPU_TARGETS+=(
# Absolute base aarch64 feature set
"generic"
# Cortex A57, Example: NVIDIA Jetson TX1, Jetson Nano
"cortex-a57"
# Cavium ThunderX2T99, a common server architecture
"thunderx2t99"
# NVidia Carmel, e.g. Jetson AGX Xavier; serves as a baseline for later architectures
"carmel,clone_all"
# Apple M1
"apple-m1,base(3)"
# Vector-length-agnostic common denominator between Neoverse V1 and V2, recent Arm server architectures
"neoverse-512tvb,base(3)"
)
;;
esac
;;
powerpc64le)
JULIA_CPU_TARGETS+=(
Expand Down

0 comments on commit 0c1c585

Please sign in to comment.