Skip to content

Instantly share code, notes, and snippets.

View dcerisano's full-sized avatar
🎯
Focusing

Dominic Cerisano dcerisano

🎯
Focusing
View GitHub Profile
Successfully generated bindings!
> webgpu@0.1.13 build C:\Gitlab-Runner\builds\Sawif_ys\0\dcp-foss\webgpu-napi-build\build\webgpu-napi
> node ./build.js
Compiling bindings for version 0.0.1...
Platform: win32 | x64
Node: 13.5.0
V8: 7.9.317.25-node.23
Copying files..
Done!
Compiling bindings..
** Failures **
cts:buffers/create_mapped:createBufferMapped={"size":12,"mappable":false} fail 56.31ms
- EXCEPTION: All relative imports must end in .js: ../../../third_party/dawn/linux
at MappingTest.init (/home/dcerisano/git/cts/src/suites/cts/gpu_test.ts:20:23)
cts:buffers/create_mapped:createBufferMapped={"size":12,"mappable":true} fail 56.232ms
- EXCEPTION: All relative imports must end in .js: ../../../third_party/dawn/linux
at MappingTest.init (/home/dcerisano/git/cts/src/suites/cts/gpu_test.ts:20:23)
cts:buffers/create_mapped:createBufferMapped={"size":524288,"mappable":false} fail 56.462ms
- EXCEPTION: All relative imports must end in .js: ../../../third_party/dawn/linux
tools/run cts
TypeError: gpu.requestAdapter is not a function
at GPUTest.init (/home/dcerisano/git/cts/src/suites/cts/gpu_test.ts:18:31)
at processTicksAndRejections (internal/process/task_queues.js:94:5)
at RunCase.run [as testcaseRun] (/home/dcerisano/git/cts/src/framework/test_group.ts:52:11)
at RunCase.run (/home/dcerisano/git/cts/src/framework/test_group.ts:76:7)
at /home/dcerisano/git/cts/src/tools/run.ts:69:25
at async Promise.all (index 0)
at /home/dcerisano/git/cts/src/tools/run.ts:85:5
TypeError: gpu.requestAdapter is not a function
/// <reference types="@webgpu/types" />
import { assert } from '../util/index.js';
let impl = require(`/home/dcerisano/git/webgpu/generated/0.0.1/linux/build/Release/addon-linux.node`);
export function getGPU(): GPU {
if (impl) {
{
"variables": {
"root": "../../..",
"platform": "<(OS)",
"build": "<@(module_root_dir)/build",
"release": "<(build)/Release",
"dawn": "{{ DAWN_PATH | safe }}",
"vkSDK": "/home/dcerisano/1.1.126.0/x86_64"
},
"conditions": [
npm run all --dawnversion=0.0.1
> webgpu@0.0.9 all /home/dcerisano/git/webgpu
> npm run generate ; npm run build
> webgpu@0.0.9 generate /home/dcerisano/git/webgpu
> node --experimental-modules ./generator/index.mjs
(node:15822) ExperimentalWarning: The ESM module loader is experimental.
gn gen out/Shared --target_cpu="x64" --args="is_component_build=true is_debug=false is_clang=true"
Done. Made 129 targets from 68 files in 139ms
ninja -C out/Shared
ninja: Entering directory `out/Shared'
[89/642] CXX obj/libdawn_native_sources/BackendGL.o
FAILED: obj/libdawn_native_sources/BackendGL.o
../../third_party/llvm-build/Release+Asserts/bin/clang++ -MMD -MF obj/libdawn_native_sources/BackendGL.o.d -DDAWN_ENABLE_VULKAN_VALIDATION_LAYERS -DDAWN_VK_DATA_DIR=\"vulkandata\" -DUSE_UDEV -DUSE_AURA=1 -DUSE_GLIB=1 -DUSE_NSS_CERTS=1 -DUSE_X11=1 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_GNU_SOURCE -DCR_CLANG_REVISION=\"365097-f7e52fbd-8\" -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D_FORTIFY_SOURCE=2 -DCOMPONENT_BUILD -D_LIBCPP_ABI_UNSTABLE -D_LIBCPP_ABI_VERSION=Cr -D_LIBCPP_ENABLE_NODISCARD -DCR_LIBCXX_REVISION=361348 -DCR_SYSROOT_HASH=e7c53f04bd88d29d075bfd1f62b073aeb69cbe09 -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DDAWN_ENABLE_BACKEND_NULL -DDAWN_ENABLE_BACKEND_O
{
"variables": {
"root": "../../..",
"platform": "<(OS)",
"build": "<@(module_root_dir)/build",
"release": "<(build)/Release",
"dawn": "{{ DAWN_PATH | safe }}",
"vkSDK": "/home/dcerisano/1.1.126.0/x86_64"
},
"conditions": [
{
"variables": {
"root": "../../..",
"platform": "<(OS)",
"build": "<@(module_root_dir)/build",
"release": "<(build)/Release",
"dawn": "{{ DAWN_PATH | safe }}",
"vkSDK": "/home/dcerisano/1.1.126.0/x86_64"
},
"conditions": [
{
"variables": {
"root": "../../..",
"platform": "<(OS)",
"build": "<@(module_root_dir)/build",
"release": "<(build)/Release",
"dawn": "{{ DAWN_PATH | safe }}",
"vkSDK": "C:/VulkanSDK/1.1.126.0"
},
"conditions": [