Skip to content

Allow archdetect to print all possible cpu paths + fix paths for aarch64/* (drop /arm/ subdir)#264

Merged
boegel merged 13 commits intoEESSI:mainfrom
ocaisa:ocaisa-patch-2
Nov 25, 2023
Merged

Allow archdetect to print all possible cpu paths + fix paths for aarch64/* (drop /arm/ subdir)#264
boegel merged 13 commits intoEESSI:mainfrom
ocaisa:ocaisa-patch-2

Conversation

@ocaisa
Copy link
Copy Markdown
Member

@ocaisa ocaisa commented Jun 16, 2023

Also fix incorrect generic path.

The idea with this PR is that if archdetect provides a full list of possible architecture matches. When used with a particular version of EESSI, you could cycle through the list until you find a path that actually exists.

It would allow us to keep archdetect independent of the version and universally update it.

@eessi-bot
Copy link
Copy Markdown

eessi-bot Bot commented Jun 16, 2023

Instance eessi-bot-citc-aws is configured to build:

  • arch x86_64/generic for repo eessi-2021.12
  • arch x86_64/generic for repo eessi-2023.06-compat
  • arch x86_64/generic for repo eessi-2023.06-software
  • arch x86_64/intel/haswell for repo eessi-2021.12
  • arch x86_64/intel/haswell for repo eessi-2023.06-compat
  • arch x86_64/intel/haswell for repo eessi-2023.06-software
  • arch x86_64/intel/skylake_avx512 for repo eessi-2021.12
  • arch x86_64/intel/skylake_avx512 for repo eessi-2023.06-compat
  • arch x86_64/intel/skylake_avx512 for repo eessi-2023.06-software
  • arch x86_64/amd/zen2 for repo eessi-2021.12
  • arch x86_64/amd/zen2 for repo eessi-2023.06-compat
  • arch x86_64/amd/zen2 for repo eessi-2023.06-software
  • arch x86_64/amd/zen3 for repo eessi-2021.12
  • arch x86_64/amd/zen3 for repo eessi-2023.06-compat
  • arch x86_64/amd/zen3 for repo eessi-2023.06-software
  • arch aarch64/generic for repo eessi-2021.12
  • arch aarch64/generic for repo eessi-2023.06-compat
  • arch aarch64/generic for repo eessi-2023.06-software
  • arch aarch64/neoverse_n1 for repo eessi-2021.12
  • arch aarch64/neoverse_n1 for repo eessi-2023.06-compat
  • arch aarch64/neoverse_n1 for repo eessi-2023.06-software
  • arch aarch64/neoverse_v1 for repo eessi-2021.12
  • arch aarch64/neoverse_v1 for repo eessi-2023.06-compat
  • arch aarch64/neoverse_v1 for repo eessi-2023.06-software

@ocaisa ocaisa changed the base branch from ocaisa-patch-2 to main June 16, 2023 13:46
@ocaisa
Copy link
Copy Markdown
Member Author

ocaisa commented Aug 1, 2023

Addresses #261 (comment)

Comment thread init/eessi_archdetect.sh Outdated
case "$ARGUMENT" in
"cpupath") cpupath; exit;;
*) echo "$USAGE"; log "ERROR" "Missing <action> argument";;
"cpupath") cpupath $all; exit;;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ocaisa Rather than passing an argument to cpupath, I would make -a change the default value of a $CPUPATCH_RESULT from best to all, which matches better with what's done with $LOG_LEVEL?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be addressed in 7db0616

Comment thread init/eessi_archdetect.sh Outdated
h) echo "$USAGE"; exit 0;;
d) LOG_LEVEL="DEBUG";;
v) echo "eessi_archdetect.sh v$VERSION"; exit 0;;
a) all="all";;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ideally we also have a constant like $CPUARCH_RESULT_ALL (where "cpuarch_result_all" is the value) than we can use for both setting and checking, to avoid bugs due to silly typos (I guess we should also try adding set -e so use of unset environment variables are treated like errors)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not quite sure what you mean here, but I think it is addressed in 7db0616

Comment thread .github/workflows/tests_archdetect.yml Fixed
Comment thread .github/workflows/tests_archdetect.yml Fixed
Comment thread .github/workflows/tests_archdetect.yml Fixed
@ocaisa ocaisa requested a review from boegel September 15, 2023 11:37
@boegel boegel changed the title Allow archdetect to print all possible cpu paths Allow archdetect to print all possible cpu paths + fix paths for aarch64/* (drop /arm/ subdir) Nov 25, 2023
@boegel boegel merged commit 686ac58 into EESSI:main Nov 25, 2023
@ocaisa ocaisa deleted the ocaisa-patch-2 branch January 23, 2024 14:46
TopRichard added a commit to TopRichard/software-layer that referenced this pull request Jan 31, 2024
….2.2-foss/2023a

{2023.06}[foss/2023a] BAGEL V1.2.2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants