-
Notifications
You must be signed in to change notification settings - Fork 54
host detection script is broken due to changes in archspec 0.1.3 #142
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
The best way forward here is probably to add support in the |
The Currently, a |
If you just need the vendor, one option is to use: info = raw_info_dictionary() directly. |
@Senui You're right, but that's a different issue I think (and much easier to fix in the EESSI init scripts) @alalazo I think the issue is broader than just the vendor part. We'd still end up with something like |
Then you can: info = raw_info_dictionary()
candidates = compatible_microarchitectures(info) You'll get a list of compatible targets and you can discard the generic ones. |
@alalazo We also want to get the best non-generic compatible target though, which means we'll need to duplicate basically the whole Wouldn't it make sense to implement support in archspec for |
Although this is fixed in #159, I'm going to re-open this, since I feel we should come up with a cleaner way... |
{23.06} GCC/12.2.0
The
archspec.cpu.host
function was changed in archspec 0.1.3 (see archspec/archspec#53) to return the best matching generic CPU microarchitecture level if there's no exact match.These levels are values like
x86-64-v4
, and have a'generic'
value for vendor, see https://github.com/archspec/archspec-json/pull/31/files.This causes trouble where we expect to find an actual vendor string like
GenuineIntel
(which we map tointel
) orAuthenticAMD
(which we map toamd
), for example indet_host_triple
ininit/eessi_software_subdir_for_host.py
or ineessi_software_subdir_for_host.py
.The text was updated successfully, but these errors were encountered: