Skip to content

Conversation

@radekdoulik
Copy link
Member

@radekdoulik radekdoulik commented Jul 26, 2023

Make it optional, move minimal set of code, which requires -msimd128, to separate library. Also provide "stub" nosimd version of that library.

Choose the appropriate library during app linking.

Part of solution for #89302

Make it optional, build only minimal set of code witch required
`-msimd128` to separate library. Also provide "stub" nosimd
version of this library.

Choose the appropriate library during linking.
@ghost ghost assigned radekdoulik Jul 26, 2023
@ghost ghost added the area-Build-mono label Jul 26, 2023
@pavelsavara
Copy link
Member

could we have WBT for this ?

@radekdoulik
Copy link
Member Author

could we have WBT for this ?

yeah, I plan to add tests later in another PR, with wa-info involved.

@lewing lewing closed this Aug 9, 2023
@lewing lewing reopened this Aug 9, 2023
@radekdoulik radekdoulik requested a review from kg August 11, 2023 12:36
Copy link
Member

@kg kg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not 100% confident in this, but it looks mergeable to me. One big caveat:
The result of this is that the EnableSIMD != 'true' scenario will be much slower than it was before I added interp PackedSimd support. Before, we had support for all the non-packedsimd SIMD APIs in the interpreter, even if the actual implementations were not using native WebAssembly SIMD. Those APIs resulted in sizable performance improvements. Because you're now disabling all SIMD instead of just PackedSimd, users with EnableSIMD set to false will probably experience performance worse than net7.

AFAIK the only part of the interpreter that actually relies on msimd128 is PackedSimd.

@lewing lewing merged commit ae0f0d8 into dotnet:main Aug 15, 2023
@lewing
Copy link
Member

lewing commented Aug 17, 2023

/backport to release/8.0-rc1

@github-actions
Copy link
Contributor

Started backporting to release/8.0-rc1: https://github.com/dotnet/runtime/actions/runs/5892974848

@radical
Copy link
Member

radical commented Aug 17, 2023

We should add a test to build, and run an app with simd turned off.

@ghost ghost locked as resolved and limited conversation to collaborators Sep 16, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants