Skip to content

Commit

Permalink
clarify cpu part identification for ARM
Browse files Browse the repository at this point in the history
  • Loading branch information
hmeiland committed Jan 18, 2023
1 parent 24b84d4 commit c858fb4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion init/arch_specs/eessi_arch_arm_part.spec
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# ARM CPU architecture specifications
# Software path in EESSI | Vendor ID | List of defining CPU features
# Software path in EESSI | Vendor ID | CPU part (ARM uarch identification)
"aarch64/arm/cortex-a72" "" "0xd08" # Raspberry Pi 4
"aarch64/arm/neoverse-n1" "" "0xd0c" # AWS Graviton2
"aarch64/arm/neoverse-v1" "" "0xd40" # AWS Graviton3
3 changes: 2 additions & 1 deletion init/eessi_archdetect.sh
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ cpupath(){
local cpu_vendor=$(get_cpuinfo "$cpu_vendor_tag")
log "DEBUG" "cpupath: CPU vendor of host system: '$cpu_vendor'"

# Identify the host CPU part
# Identify the host CPU part
local cpu_part_tag="cpu[ _]part"
local cpu_part=$(get_cpuinfo "$cpu_part_tag")
log "DEBUG" "cpupath: CPU part of host system: '$cpu_part'"
Expand All @@ -92,6 +92,7 @@ cpupath(){
case $machine_type in
"x86_64") local spec_file="eessi_arch_x86.spec";;
"aarch64")
# look for ARM core identification through cpu part when available, otherwise fall back to features
local spec_file="eessi_arch_arm.spec"
[ ! "${cpu_part}x" == "x" ] && local spec_file="eessi_arch_arm_part.spec"
;;
Expand Down

0 comments on commit c858fb4

Please sign in to comment.