Skip to content
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

How to change vector extension configuration(vlen, elen)? #1767

Open
Seo-sang opened this issue Aug 9, 2024 · 4 comments
Open

How to change vector extension configuration(vlen, elen)? #1767

Seo-sang opened this issue Aug 9, 2024 · 4 comments

Comments

@Seo-sang
Copy link

Seo-sang commented Aug 9, 2024

Hello, I have a problem when building spike with --with-varch option and I found varch option is removed two month ago. Then, how to change vector configuration? Downloading the version before it removed the only way to change them?
Thank you.

image

@jerryz123
Copy link
Collaborator

This is done at runtime with the zvl/zve isa strings now.

For example, you can specify --isa=rv64gcv_zvl512b_zve64d

No flags need to be passed to the configure script.

@Seo-sang
Copy link
Author

Seo-sang commented Aug 9, 2024

Oh, I see. Thank you for your immediate response👍

@Seo-sang
Copy link
Author

Seo-sang commented Aug 9, 2024

@jerryz123 I have one more question. Even though I set --isa=rv64gcv_zvl128b_zve32f, elen isn't changed and it seems that elen cannot be smaller than 64-bit in isa_parser.cc file line 349. How can I set elen to 32-bit?
Thank you.

@jerryz123
Copy link
Collaborator

v extension requires zve64d, and zve32f is a subset of zve64d (zve32f does not imply zve64d is not available).

You can do rv64gc_zvl128b_zve32f to get a machine with ELEN=32.

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

No branches or pull requests

2 participants