Skip to content

Commit 51aae63

Browse files
committed
Comment on dawn toggles
1 parent 2aa05c6 commit 51aae63

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ggml/src/ggml-webgpu/ggml-webgpu.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2149,6 +2149,10 @@ static ggml_backend_dev_t ggml_backend_webgpu_reg_get_device(ggml_backend_reg_t
21492149
required_features.push_back(wgpu::FeatureName::TimestampQuery);
21502150
#endif
21512151

2152+
// Enable Dawn-specific toggles to increase native performance
2153+
// TODO: Don't enable for WASM builds, they won't have an effect anyways
2154+
// TODO: Maybe WebGPU needs a "fast" mode where you can request compilers skip adding checks like these,
2155+
// only for native performance?
21522156
const char * const deviceEnabledToggles[] = { "skip_validation", "disable_robustness", "disable_workgroup_init",
21532157
"disable_polyfills_on_integer_div_and_mod" };
21542158
const char * const deviceDisabledToggles[] = { "timestamp_quantization" };

0 commit comments

Comments
 (0)