Skip to content
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

[WebGL backend] Add a flag to enable Software WebGL #6772

Merged
merged 1 commit into from
Aug 19, 2022

Conversation

Linchenn
Copy link
Collaborator

@Linchenn Linchenn commented Aug 19, 2022

Previously, if the device does not have hardware GPU (even though it provides software webgl), it will disable webgl backend.

Example: for this case, WebGL backend will be disabled.
image

This works for our users, but we want to run tests and benchmarks on WebGL backend, even if the devices only have software WebGL only (BrowserStack's windows devices). Then this PR adds a flag to disable/enable software WebGL to make it flexible.

Reference: https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/getContext (search for failIfMajorPerformanceCaveat )

Fix #6769.

To see the logs from the Cloud Build CI, please join either our discussion or announcement mailing list.


This change is Reviewable

Copy link
Collaborator

@lina128 lina128 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Reviewable status: :shipit: complete! 1 of 1 approvals obtained (waiting on @pyu10055)

@pyu10055 pyu10055 merged commit d86a6db into tensorflow:master Aug 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants