Changes

Jump to: navigation, search

SVE2

125 bytes added, 18:41, 26 March 2022
m
no edit summary
=== C Compiler Options ===
To At the time of writing (March 2022), most compilers do not have a specific target for Armv9 systems. Therefore, to build code that includes SVE2 instructions, you will need to instruct the complier or assembler to emit code for an Armv8a Armv8-a processor that also understands the SVE2 instructions; on the GCC compiler, this is performed using the <code>-march=</code> option (which is read as "machine architecture"). '''You must do this regardless of whether you're using autovectorization, inline assembler, or intrinsics.''' The architecture specificaion for this target is currently "armv8-a+sve2":
gcc -march=armv8-a+sve2 ...
== Running SVE2 Code ==
To run SVE2 code on an Armv8 systemcomputer, you can use the QEMU usermode systemsoftware. This will trap SVE2 instructions and emulate them in software, while executing Armv8a instructions directly on the hardware:
qemu-aarch64 ''./binary''
{{Admon/tip|Running AArch64 code on x86_64|The QMEU QEMU user mode software can also be used to run AArch64 code on an x86_64 system (albeit slowly). However, this requires a full AArch64 userspace (applications and tools, such as ld) to be installed on the x86_64 system.}}
70
edits

Navigation menu