To specify a default target for spack load, you need to set the default target in Spack's configuration files. The most relevant way is to configure the concretizer settings in your concretizer.yaml file. Specifically, you can set the default target for all packages by adding a targets section under concretizer in your configuration.
For example, to set a default target like icelake, you can add the following to your ~/.spack/concretizer.yaml (or the appropriate scope for your needs):
yamlconcretizer: targets: granularity: microarchitectures host_compatible: true default: icelake
granularity: microarchitectures allows Spack to consider all known microarchitectures.host_compatible: true ensures the target is compatible with the host.default: icelake sets the default target for all packages unless overridden.If you want to set a default target for a specific package, you can also use the packages.yaml file to specify the target for that package.
Note: The exact syntax and available options may vary slightly depending on your Spack version. Always check your Spack documentation for the most up-to-date information.
Would you like help finding the exact path for your Spack configuration files or more details on how to set this up for your specific use case?