3 ms·
This LMUL thing sounds like a total antipattern. Does the OS have to handle it manually on context switches, or can it just pop the process's LMUL state with al
by ryukoposting 3y ago
This LMUL thing sounds like a total antipattern. Does the OS have to handle it manually on context switches, or can it just pop the process's LMUL state with all the normal registers? Sounds like a feature that coult get ugly in embedded applications.
- camel-cdr 3y agoLMUL is encoded in the vtype, which includes LMUL, element width and tail/mask policy, it can be easily read and set.
- dzaima 3y ago"LMUL state" is three bits (7 possible values) of thread-wide config that just change how operations operate with the same vector registers; similar to say the FP dynamic rounding mode, which also needs to be saved & restored across context switches.