nuget server logo nuget api documents
↑

API Docs / Microsoft.VisualBasic.Runtime / SIMDConfiguration

SIMDConfiguration

Full name Microsoft.VisualBasic.Math.SIMD.SIMDConfiguration Assembly Microsoft.VisualBasic.Runtime Members 8

SIMD 计算模式的配置枚举。

00 Remarks

在 v10 之后,运行时会自动探测处理器能力并分派到最佳计算路径, 因此除 SIMDConfiguration.disable 之外的成员都只是为了让旧代码可以继续编译 而保留的历史取值(它们会被当作 SIMDConfiguration.auto 处理)。

01 Syntax

Microsoft.VisualBasic.Math.SIMD.SIMDConfiguration

02 Fields

NameOverloadsSummary
disable 2 强制使用纯标量路径。这是唯一的“逃生口”开关,用于 性能对照测试或者在遇到精度/平台问题时回退。
enable 2 【兼容保留】历史取值:使用 System.Runtime.Intrinsics.X86 的 SIMD 支持。 现在等价于 SIMDConfiguration.auto。
legacy 2 【兼容保留】历史取值:使用 System.Numerics.Vector 的 SIMD 支持。 现在等价于 SIMDConfiguration.auto。
auto 2 根据处理器能力自动选择向量化路径(默认值)。

03 Members

field disable #
disable

强制使用纯标量路径。这是唯一的“逃生口”开关,用于 性能对照测试或者在遇到精度/平台问题时回退。

field enable #
enable

【兼容保留】历史取值:使用 System.Runtime.Intrinsics.X86 的 SIMD 支持。 现在等价于 SIMDConfiguration.auto。

field legacy #
legacy

【兼容保留】历史取值:使用 System.Numerics.Vector 的 SIMD 支持。 现在等价于 SIMDConfiguration.auto。

field auto #
auto

根据处理器能力自动选择向量化路径(默认值)。

field disable overload 2 #
disable
field enable overload 2 #
enable
field legacy overload 2 #
legacy
field auto overload 2 #
auto