Skip to content
Snippets Groups Projects

if MPSD_MICROARCH is not defined, use archspec to determine

Merged Hans Fangohr requested to merge more-robust-micro-architecture-detection into main
1 unresolved thread

What does the MR provide?

  • If MPSD_MICROARCH is not defined as a environment variable, then use archspec to determine it.
  • if archspec is not available, ask user to provide it via error message and stop.

Where does this matter?

  • script creates a folder for the microarchitecture.
  • Found in Docker container that this would be dev-23a/UNKNOWN_MICROARCH/
  • the same will happen on other user machines (unless they are the Linux laptops provided by MPSD; but we know several people who prefer to run their own distribution, or even non-linux system (i.e. Mac).
Edited by Hans Fangohr

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
517 572 # Set required variables
518 573 release_base_dir = script_dir / mpsd_release
519 574 os.environ.get("MPSD_OS", "UNKNOWN_OS")
520 mpsd_microarch = os.environ.get("MPSD_MICROARCH", "UNKNOWN_MICROARCH")
521 toolchain_dir = release_base_dir / mpsd_microarch
575 microarch = get_native_microarchitecture()
576 toolchain_dir = release_base_dir / microarch
522 577 toolchain_dir.mkdir(parents=True, exist_ok=True)
  • Comment on lines -520 to 522

    can we remove these changes, In the implementation of #7 (closed) I am checking mpsd_microarch in main and not here, so it might add to the unwanted merge conflict? If we merge just the function, I can make sure to use this in my other MR. Otherwise, this MR looks good to me so ill approve it.

  • Yes, no problem. I'll remove the lines here.

  • Please register or sign in to reply
  • Ashwin Kumar Karnad approved this merge request

    approved this merge request

  • Hans Fangohr added 1 commit

    added 1 commit

    • e4927b09 - undo changes in calling the function to prepare for other MR

    Compare with previous version

  • Hans Fangohr enabled an automatic merge when the pipeline for e4927b09 succeeds

    enabled an automatic merge when the pipeline for e4927b09 succeeds

  • Hans Fangohr mentioned in commit 449f2251

    mentioned in commit 449f2251

  • merged

  • Please register or sign in to reply
    Loading