shtns-webgpu: fp32 spherical harmonic transforms on WebGPU
test 13s
Runner
Job test on ubuntu-latest Checking out concept-collection/shtns-webgpu at fe1c1af0 Container started from catthehacker/ubuntu:act-latest Cleaning up the job container
actions/checkout@v40s
▸ actions/checkout@v4 Using cofferdam's built-in checkout (actions/checkout@v4) concept-collection/shtns-webgpu is already checked out at fe1c1af0 (cofferdam checks out before the job starts)
actions/setup-node@v47s
▸ actions/setup-node@v4 Using cached actions/setup-node@v4 (49933ea5288c) Attempting to download 24... (node:56) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead. (Use `node --trace-deprecation ...` to show where the warning was created) Bad credentials Falling back to download directly from Node Acquiring 24.19.0 - x64 from https://nodejs.org/dist/v24.19.0/node-v24.19.0-linux-x64.tar.gz Extracting ... [command]/usr/bin/tar xz --strip 1 --warning=no-unknown-keyword --overwrite -C /cofferdam/temp/6825dbd2-39d6-40ae-8812-1c16501026e2 -f /cofferdam/temp/a4febfbb-ed5f-47bd-9876-59e0a046b325 Adding to the cache ... Done ▾ Environment details node: v24.19.0 npm: 11.17.0 yarn: WARNING: Cache action is only supported on GHES version >= 3.5. If you are on version >=3.5 Please check with GHES admin if Actions cache service is enabled or not.
Run npm ci3s
▸ Run npm ci added 96 packages, and audited 97 packages in 1s 10 packages are looking for funding run `npm fund` for details 7 vulnerabilities (1 moderate, 6 high) To address issues that do not require attention, run: npm audit fix To address all issues (including breaking changes), run: npm audit fix --force Run `npm audit` for details. npm warn allow-scripts 1 package has install scripts not yet covered by allowScripts: npm warn allow-scripts esbuild@0.21.5 (postinstall: node install.js) npm warn allow-scripts npm warn allow-scripts Run `npm approve-scripts --allow-scripts-pending` to review, or `npm approve-scripts <pkg>` to allow.
Run npm run test:node1s
▸ Run npm run test:node > shtns-webgpu@0.1.0 test:node > node scripts/test-node.ts PASS gauss: sum(w) == 2 (err=2.22e-16) PASS gauss: int x^2 == 2/3 (err=4.44e-16) PASS gauss: nodes decreasing PASS Y_0^0 PASS Y_1^0 PASS Y_2^0 PASS Y_1^1 (CS phase) (got -0.22257344192657688, want -0.22257344192657688) PASS Y_2^1 PASS Y_2^2 PASS orthonormality: max err < 1e-12 (worst=1.94e-15) PASS reference round trip rel L2 < 1e-12 (rel=4.93e-15) PASS constant field -> Q_00 = sqrt(4pi) (got 3.5449077018110318) PASS constant field -> other coeffs ~ 0 (max=1.88e-15) ALL NODE TESTS PASSED
Run npm run test:gpu2s
▸ Run npm run test:gpu
> shtns-webgpu@0.1.0 test:gpu
> vite build && node scripts/test-gpu.mjs
[36mvite v5.4.21 [32mbuilding for production...[36m[39m
transforming...
[32m✓[39m 14 modules transformed.
rendering chunks...
computing gzip size...
[2mdist/[22m[32mtest.html [39m[1m[2m 0.39 kB[22m[1m[22m[2m │ gzip: 0.26 kB[22m
[2mdist/[22m[32mindex.html [39m[1m[2m 3.91 kB[22m[1m[22m[2m │ gzip: 1.49 kB[22m
[2mdist/[22m[2massets/[22m[36mtest-Bdv7Htxy.js [39m[1m[2m 2.49 kB[22m[1m[22m[2m │ gzip: 1.24 kB[22m
[2mdist/[22m[2massets/[22m[36mmain-XE7Y5Jun.js [39m[1m[2m 3.58 kB[22m[1m[22m[2m │ gzip: 1.78 kB[22m
[2mdist/[22m[2massets/[22m[36mreference-BsKlWwb4.js [39m[1m[2m19.77 kB[22m[1m[22m[2m │ gzip: 6.67 kB[22m
[32m✓ built in 121ms[39m
file:///cofferdam/workspace/node_modules/puppeteer-core/lib/esm/puppeteer/node/BrowserLauncher.js:50
throw new Error(`Browser was not found at the configured executablePath (${launchArgs.executablePath})`);
^
Error: Browser was not found at the configured executablePath (/usr/bin/google-chrome)
at ChromeLauncher.launch (file:///cofferdam/workspace/node_modules/puppeteer-core/lib/esm/puppeteer/node/BrowserLauncher.js:50:19)
at async file:///cofferdam/workspace/scripts/test-gpu.mjs:45:19
Node.js v24.19.0
Process completed with exit code 1.