Stream: git-wasmtime

Topic: wasmtime / PR #1880 machinst: make it possible to test th...


view this post on Zulip Wasmtime GitHub notifications bot (Jun 15 2020 at 16:26):

bnjbvr opened PR #1880 from x64-testing to master:

This should make it much easier to hack on and try the new work-in-progress x64 backend. Eventually we can delete the Cargo feature for wasmtime once the transition to the new backend is over.

view this post on Zulip Wasmtime GitHub notifications bot (Jun 15 2020 at 16:26):

bnjbvr requested fitzgen and abrown for a review on PR #1880.

view this post on Zulip Wasmtime GitHub notifications bot (Jun 15 2020 at 16:26):

bnjbvr requested fitzgen and abrown for a review on PR #1880.

view this post on Zulip Wasmtime GitHub notifications bot (Jun 15 2020 at 16:38):

fitzgen submitted PR Review.

view this post on Zulip Wasmtime GitHub notifications bot (Jun 15 2020 at 22:52):

abrown submitted PR Review.

view this post on Zulip Wasmtime GitHub notifications bot (Jun 15 2020 at 22:52):

abrown created PR Review Comment:

My understanding of this is that adding haswell here means that only hosts compatible with the haswell flags will run this test (that's what we documented in https://github.com/bytecodealliance/wasmtime/blob/master/cranelift/docs/testing.md#test-run). Is that the intent? Or do we want to try to run on nehalem and above since that has the SSE flags needed? (It's probably hard to find hardware to trigger this error...).

view this post on Zulip Wasmtime GitHub notifications bot (Jun 15 2020 at 22:54):

abrown submitted PR Review.

view this post on Zulip Wasmtime GitHub notifications bot (Jun 15 2020 at 22:54):

abrown created PR Review Comment:

We could fix #1558 while we're at it: we probably want to print something to tell the user we ignored a run test because of hardware issues.

view this post on Zulip Wasmtime GitHub notifications bot (Jun 16 2020 at 09:17):

bnjbvr submitted PR Review.

view this post on Zulip Wasmtime GitHub notifications bot (Jun 16 2020 at 09:17):

bnjbvr created PR Review Comment:

This is actually reflecting a reality that's implicit at the moment: the host machine must match some SSE level to be able to effectively run the tests. I think this was implicit because the native host ISA would parse the CPUID, and all the machines running this would have the SSE SSE prerequisites. But this means that somebody who'd try to run the test on a very old machine might not be able to, and run into illegal instructions exceptions there.

This was uncovered by the change in this patch that uses the target ISA to compile, as defined in the test file, rather than the host's one built and configured from within the Rust code. (To answer your question in another comment, this was required to make it possible to pass the use_new_backend flag to the test.)

I'll identify what the precise SSE flags are, and will try to mitigate the potential SSE flags mismatch issue.

view this post on Zulip Wasmtime GitHub notifications bot (Jun 16 2020 at 09:24):

bnjbvr submitted PR Review.

view this post on Zulip Wasmtime GitHub notifications bot (Jun 16 2020 at 09:24):

bnjbvr created PR Review Comment:

The reason for which it was "commented out" here is that this test doesn't pass yet with the new x64 backend: we need enough IR lowering for creating the trampolines (and iconst/icmp).

view this post on Zulip Wasmtime GitHub notifications bot (Jun 16 2020 at 13:59):

bnjbvr submitted PR Review.

view this post on Zulip Wasmtime GitHub notifications bot (Jun 16 2020 at 13:59):

bnjbvr created PR Review Comment:

It's actually quite complicated, because the target specific flags are not to be queried outside the TargetIsa impl. I tried a lot of different things and lost a lot of time, so I went back to something simpler (this is testing only, after all): ensure the host is Nehalem at least, and by policy ensure that no one will add run tests that require more than that. We'll need to find a more long-term solution that does the right thing, probably with a full refactoring of the flags system.

view this post on Zulip Wasmtime GitHub notifications bot (Jun 16 2020 at 13:59):

bnjbvr requested abrown for a review on PR #1880.

view this post on Zulip Wasmtime GitHub notifications bot (Jun 16 2020 at 14:01):

bnjbvr updated PR #1880 from x64-testing to master:

This should make it much easier to hack on and try the new work-in-progress x64 backend. Eventually we can delete the Cargo feature for wasmtime once the transition to the new backend is over.

view this post on Zulip Wasmtime GitHub notifications bot (Jun 16 2020 at 15:47):

bnjbvr updated PR #1880 from x64-testing to master:

This should make it much easier to hack on and try the new work-in-progress x64 backend. Eventually we can delete the Cargo feature for wasmtime once the transition to the new backend is over.

view this post on Zulip Wasmtime GitHub notifications bot (Jun 16 2020 at 16:57):

bnjbvr updated PR #1880 from x64-testing to master:

This should make it much easier to hack on and try the new work-in-progress x64 backend. Eventually we can delete the Cargo feature for wasmtime once the transition to the new backend is over.

view this post on Zulip Wasmtime GitHub notifications bot (Jun 17 2020 at 14:19):

bnjbvr updated PR #1880 from x64-testing to master:

This should make it much easier to hack on and try the new work-in-progress x64 backend. Eventually we can delete the Cargo feature for wasmtime once the transition to the new backend is over.

view this post on Zulip Wasmtime GitHub notifications bot (Jun 17 2020 at 14:39):

bnjbvr updated PR #1880 from x64-testing to master:

This should make it much easier to hack on and try the new work-in-progress x64 backend. Eventually we can delete the Cargo feature for wasmtime once the transition to the new backend is over.

view this post on Zulip Wasmtime GitHub notifications bot (Jun 17 2020 at 15:18):

bnjbvr merged PR #1880.


Last updated: Dec 23 2024 at 13:07 UTC