Open MaksymZavershynskyi opened 4 years ago
Assigning low priority since most of the work is done by Wasmer.
This issue has been automatically marked as stale because it has not had recent activity in the last 2 months. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.
@nearmax what is the status of this issue?
This issue has been automatically marked as stale because it has not had recent activity in the last 2 months. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.
@matklad could you check whether this is still relevant?
@olonho am I correct that wasmer2 canonicalizes nans in an arch-independent way, and that we can close this after #4910 ?
This issue has been automatically marked as stale because it has not had recent activity in the last 2 months. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.
Wasmer2's singlepass backend canonicalizes NaNs as necessary by default (though I cannot vouch for the canonicalization being exhaustive, or bug-free), making the first two points in the checklist above solved.
In response to:
Once it is resolved we should enable non-x86 architectures
singlepass supports x86_64 only, right now, so NaN canonicalization is probably the least of the blockers for this kind of feature request and probably should be tracked as a separate issue. The check in question that we have in nearcore can go away either way though, because wasmer
now checks that a supported architecture is being targetted by itself.
Makes sense!
Do we have tests for nan canonicalization? This is something that might differ between runtimes (as that's not specced by WASM), so we should have tests for this on our side.
I think we have one test here:
But I don't think we have reinterpret based tests.
So: let's add test some time and then close this.
This issue has been automatically marked as stale because it has not had recent activity in the last 2 months. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.
cc @akhi3030 , you might want to take a look at this.
This issue should be resolved by Wasmer. Once it is resolved we should enable non-x86 architectures.