runtime icon indicating copy to clipboard operation
runtime copied to clipboard

Enable FEATURE_SIMD and FEATURE_AVX_SUPPORT for System V

Open CarolEidt opened this issue 11 years ago • 6 comments

@LLITCHEV See PR # 981, which enables it for amd64 windows.

CarolEidt avatar May 12 '15 15:05 CarolEidt

Is there any particular reason that SIMD isn't enabled on Linux yet? AFAIK it shouldn't affect the CC-related code unless we want to project Vector to __m128/__m256 (for SSE/AVX, respectively). Note that the projection to __m256 may require some invasive changes, as these values are passed in up to four vector registers and require proper handling of the SSEUP classification.

pgavlin avatar Nov 09 '15 16:11 pgavlin

I don't know if Lubo has done any more detailed analysis on this, but even apart from projecting these types, we may run into unexpected issues where we have inadvertently made assumptions about how these are passed. I don't think it would be too hard to try enabling it, and then we would have a better idea about whether there are any issues, and can then estimate the cost of addressing them.

CarolEidt avatar Nov 09 '15 17:11 CarolEidt

(For reference, it'd be great to get this fixed by RC2 so that code using the corefx System.Numerics.Vectors.dll library isn't negatively affected. Thanks!)

stephentoub avatar Nov 09 '15 17:11 stephentoub

This will directly effect the performance of the AspNet Kestrel server on Linux when using coreclr which heavily makes use of System.Numerics.Vectors e.g. MemoryPoolIterator for request parsing.

/cc @davidfowl

benaadams avatar Nov 12 '15 07:11 benaadams

FEATURE_SIMD is now enabled. I am currently working on enabling AVX2 support, which is the other half of dotnet/coreclr#983

CarolEidt avatar Jan 16 '16 00:01 CarolEidt

Excellent! Thank you very much :smile:

benaadams avatar Jan 16 '16 00:01 benaadams