Skip to content

Allow using an external JSON file for microarchitectures #144

Closed

Description

@alalazo

From a conversation in Slack:

I have a feature request for archspec. I'd like the ability to provide an external microarch definition, and have spack/archspec use that instead of it's internal definitions. To explain why this would be helpful I have two primary usecases:

  1. Unreleased hardware is hard to optimize for with an explicit archspec (like sapphire rapids before it was public)
  2. Virtualized environments sometimes don't provide the same CPU flags that bare metal environments surface.

So, it would be nice to be able to change the definition to optimize for these environments. Granted, some packages (like openssh) cause problems when you do this, as they use some of the flags you need, but only allowing x86_64 on these packages can get around the issues. So, it would be nice to either:

  1. Allow spack to provide it as a CLI argument
  2. Allow spack's config to define where the archspec file should be read from (maybe a config section, or something like that?)

Activity

  1. added
    enhancement
    on Feb 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions