riscv-non-isa / rvv-intrinsic-doc

https://jira.riscv.org/browse/RVG-153
BSD 3-Clause "New" or "Revised" License
287 stars 90 forks source link

Question about rvv intrinsic version #263

Closed rvvstuding closed 1 year ago

rvvstuding commented 1 year ago

Hello, everyone, I saw gcc 13 release support rvv 0.11 release, and I want to know how to find the version of rvv intrinsic version in my gcc(gcc version 12.0.1 rvv-next branch). And I wonder which is more stable and recommended between the my version and rvv 0.11 release. Thanks

zhongjuzhe commented 1 year ago

I would suggest to use master/trunk GCC which supports V1.0 intrinsics. Besides, rvv-next branch is going to retire/remove since we no longer maintain rvv-next.

eopXD commented 1 year ago

You may use the test macro to checkout the supported version of the compiler. On the other hand, I agree with @zhongjuzhe that it is at best for you to start the developments on top of latest intrinsics since the old ones will be deprecated.

rvvstuding commented 1 year ago

You may use the test macro to checkout the supported version of the compiler. On the other hand, I agree with @zhongjuzhe that it is at best for you to start the developments on top of latest intrinsics since the old ones will be deprecated.

I found the version_macro.adoc file in the old documents, which exists = Version Macro, and I tried to use it, in the form of int v = Version Macro , but failed. Am I using it in a wrong way?

eopXD commented 1 year ago

The macro __riscv_v_intrinsic defines the version supported.