Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Gauging interest/compatibility for WebGPU backend/Request #1139

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
jon-chuang opened this issue Feb 17, 2020 · 3 comments
Closed

Gauging interest/compatibility for WebGPU backend/Request #1139

jon-chuang opened this issue Feb 17, 2020 · 3 comments

Comments

@jon-chuang
Copy link

jon-chuang commented Feb 17, 2020

Apparently, there should exist a path from SYCL source to WebGPU backend, by writing an abstraction layer that takes SYCL calls and converts them to WebGPU C API calls (see here and the header file). WebGPU exposes graphics interface, but also allows general compute and should allow for Vulkan compatible SPIR-V code, which can be converted from OpenCL SPIR-V via clspv.

Hence, I was wondering what the process might be to compile these Vulkan SPIR-V bytecode files through sycl-llvm SPIR-V codegen and pass through clspv, and link with a SYCL runtime that makes wgpu.h calls?

I understand that SYCL is primarily of interest to Intel in the HPC/data center space to program their complex suite of devices through a single API. However, having compatibility with a web-facing standard that works flawlessly could be in Intel's and SYCL's favour. This is because it could encourage adoption of SYCL by those looking to maintain a single code-base for both their web users and for data center scale accelerations, for instance if they themselves have customers with varying compute requirements.

@jon-chuang jon-chuang changed the title Gauging interest/compatibility for WebGPU backend Gauging interest/compatibility for WebGPU backend/Request Feb 17, 2020
@jon-chuang
Copy link
Author

Can I get some response on this issue?

@bader
Copy link
Contributor

bader commented Mar 2, 2020

WebGPU exposes graphics interface, but also allows general compute and should allow for Vulkan compatible SPIR-V code, which can be converted from OpenCL SPIR-V via clspv.

AFAIK, clspv compiles "OpenCL C" source code to SPIR-V shaders at the cost of limiting OpenCL features. So I don't think proposed compilation flow is possible with the available tools.

Do you have any particular examples where using SYCL programming model for WebGPU back-end is beneficial?

@github-actions
Copy link
Contributor

This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be automatically closed in 30 days.

@github-actions github-actions bot added the Stale label Feb 19, 2022
@intel intel locked and limited conversation to collaborators Feb 19, 2022
@alexbatashev alexbatashev converted this issue into discussion #5614 Feb 19, 2022

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants