node icon indicating copy to clipboard operation
node copied to clipboard

v8,tools: expose experimental wasm revectorize feature

Open yolanda15 opened this issue 1 year ago • 7 comments

The wasm simd256 revectorization feature is enabled by default when v8_enable_webassembly is true on x64 target in V8. At runtime it will be enabled through flag --experimental-wasm-revectorize.

This PR adds the build configuration in Node to enable this feature and make it explicitly accessible through the same runtime flag for x64 build.

yolanda15 avatar Sep 12 '24 07:09 yolanda15

Review requested:

  • [ ] @nodejs/gyp
  • [ ] @nodejs/v8-update

nodejs-github-bot avatar Sep 12 '24 07:09 nodejs-github-bot

@targos Could you help me merge this PL? I seem not authorized and it's already one week passed. Thank you in advance!

yolanda15 avatar Sep 20 '24 01:09 yolanda15

Commit Queue failed
- Loading data for nodejs/node/pull/54896
✔  Done loading data for nodejs/node/pull/54896
----------------------------------- PR info ------------------------------------
Title      v8,tools: expose experimental wasm revectorize feature (#54896)
Author     Yolanda-Chen <[email protected]> (@yolanda15, first-time contributor)
Branch     yolanda15:enable_revec -> nodejs:main
Labels     build, v8 engine, tools, needs-ci
Commits    1
 - v8,tools: expose experimental wasm revectorize feature
Committers 1
 - Yolanda Chen <[email protected]>
PR-URL: https://github.com/nodejs/node/pull/54896
Reviewed-By: Michaël Zasso <[email protected]>
------------------------------ Generated metadata ------------------------------
PR-URL: https://github.com/nodejs/node/pull/54896
Reviewed-By: Michaël Zasso <[email protected]>
--------------------------------------------------------------------------------
   ℹ  This PR was created on Thu, 12 Sep 2024 07:48:42 GMT
   ✔  Approvals: 1
   ✔  - Michaël Zasso (@targos) (TSC): https://github.com/nodejs/node/pull/54896#pullrequestreview-2303482481
   ✔  Last GitHub CI successful
   ✘  No Jenkins CI runs detected
--------------------------------------------------------------------------------
   ✔  Aborted `git node land` session in /home/runner/work/node/node/.ncu
https://github.com/nodejs/node/actions/runs/10952384360

nodejs-github-bot avatar Sep 20 '24 02:09 nodejs-github-bot

CI: https://ci.nodejs.org/job/node-test-pull-request/62635/

nodejs-github-bot avatar Sep 21 '24 16:09 nodejs-github-bot

The test failure seems unrelated. Not wasm test and not reproducible locally. Rebased and rerun the test.

yolanda15 avatar Sep 23 '24 10:09 yolanda15

Rebase again. Could anyone help approve the workflows?

yolanda15 avatar Sep 26 '24 14:09 yolanda15

Seems all test passed. I'm still not authorized. Could anyone help merge this PR? Not sure if any other authority is needed. Thanks in advance!

yolanda15 avatar Sep 29 '24 12:09 yolanda15

CI: https://ci.nodejs.org/job/node-test-pull-request/63389/

nodejs-github-bot avatar Nov 02 '24 15:11 nodejs-github-bot

V8 CI: https://ci.nodejs.org/job/node-test-commit-v8-linux/nodes=benchmark-ubuntu2204-intel-64,v8test=v8test/6265/

nodejs-github-bot avatar Nov 02 '24 15:11 nodejs-github-bot

V8 CI: https://ci.nodejs.org/job/node-test-commit-v8-linux/nodes=rhel8-s390x,v8test=v8test/6265/

nodejs-github-bot avatar Nov 02 '24 15:11 nodejs-github-bot

V8 CI: https://ci.nodejs.org/job/node-test-commit-v8-linux/nodes=rhel8-ppc64le,v8test=v8test/6265/

nodejs-github-bot avatar Nov 02 '24 15:11 nodejs-github-bot

Thanks Marco! Rebased to avoid test failures.

yolanda15 avatar Nov 04 '24 12:11 yolanda15

Thanks Marco! Rebased to avoid test failures.

I would recommend to not rebase, unless there are conflicts to fix: when you rebase, the PR requires a full CI re-run, while we can simply resume the failed test suite if you don't rebase.

aduh95 avatar Nov 05 '24 22:11 aduh95

CI: https://ci.nodejs.org/job/node-test-pull-request/63436/

nodejs-github-bot avatar Nov 05 '24 22:11 nodejs-github-bot

V8 CI: https://ci.nodejs.org/job/node-test-commit-v8-linux/nodes=benchmark-ubuntu2204-intel-64,v8test=v8test/6270/

nodejs-github-bot avatar Nov 05 '24 22:11 nodejs-github-bot

V8 CI: https://ci.nodejs.org/job/node-test-commit-v8-linux/nodes=rhel8-s390x,v8test=v8test/6270/

nodejs-github-bot avatar Nov 05 '24 22:11 nodejs-github-bot

V8 CI: https://ci.nodejs.org/job/node-test-commit-v8-linux/nodes=rhel8-ppc64le,v8test=v8test/6270/

nodejs-github-bot avatar Nov 05 '24 22:11 nodejs-github-bot

CI: https://ci.nodejs.org/job/node-test-pull-request/63444/

nodejs-github-bot avatar Nov 06 '24 01:11 nodejs-github-bot

CI: https://ci.nodejs.org/job/node-test-pull-request/63446/

nodejs-github-bot avatar Nov 06 '24 10:11 nodejs-github-bot

I would recommend to not rebase, unless there are conflicts to fix: when you rebase, the PR requires a full CI re-run, while we can simply resume the failed test suite if you don't rebase.

Thanks for the recommendation! Noted and will avoid the rebase next time. @aduh95

yolanda15 avatar Nov 06 '24 12:11 yolanda15

Added a new commit to disable revec on mac to avoid a bulid failure with clang13 on macOS. Please see failed log at https://ci.nodejs.org/job/node-test-commit-osx/nodes=osx11-x64/61922/consoleFull. The same file compiles on Linux with g++-12. @targos @jasnel Please help take a look. Thanks!

yolanda15 avatar Nov 06 '24 12:11 yolanda15

CI: https://ci.nodejs.org/job/node-test-pull-request/63453/

nodejs-github-bot avatar Nov 06 '24 13:11 nodejs-github-bot

CI: https://ci.nodejs.org/job/node-test-pull-request/63453/

The test failure on node-test-commit-arm seems timeout:

21:16:03 not ok 4128 parallel/test-stream-readable-unpipe-resume 21:16:03 --- 21:16:03 duration_ms: 360064.83100 21:16:03 severity: fail 21:16:03 exitcode: -15 21:16:03 stack: |- 21:16:03 timeout 21:16:03 ...

May need a retest @aduh95. Thanks!

yolanda15 avatar Nov 07 '24 03:11 yolanda15

CI: https://ci.nodejs.org/job/node-test-pull-request/63594/

nodejs-github-bot avatar Nov 16 '24 23:11 nodejs-github-bot

CI: https://ci.nodejs.org/job/node-test-pull-request/63669/

nodejs-github-bot avatar Nov 23 '24 18:11 nodejs-github-bot

CI: https://ci.nodejs.org/job/node-test-pull-request/63670/

nodejs-github-bot avatar Nov 23 '24 18:11 nodejs-github-bot

Thanks for the new test! Could this get merged now?

yolanda15 avatar Nov 25 '24 08:11 yolanda15

Landed in b5056be8544345ae4dd53601400240479f99b9a1

aduh95 avatar Dec 07 '24 23:12 aduh95

Thank you very much! @aduh95

yolanda15 avatar Dec 08 '24 12:12 yolanda15