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

[SYCL][Doc][NFC] Rename 'fallback' to 'generic' in two specs #12544

Merged
merged 1 commit into from
Feb 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -973,7 +973,7 @@ int main() {
syclex::if_architecture_is<syclex::architecture::intel_gpu_pvc>([&]{
// Code for PVC
}).otherwise([&]{
// Fallback code
// Generic code
});
});
Expand All @@ -987,7 +987,7 @@ int main() {
syclex::architecture::amd_gpu_gfx1013>([&]{
// Code for AMD devices between gfx1010 and gfx1013 (inclusive)
}).otherwise([&]{
// Fallback code
// Generic code
});
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ executes the `if_device_has` function has **all** of the aspects listed in this
pack. If the condition is `true`, the implementation calls `fn`. Otherwise,
the function `fn` is potentially discarded as described below.

=== Fallback code
=== Generic code

The value returned by `if_device_has` is an object _F_ of an unspecified type,
which provides the following member functions:
Expand Down Expand Up @@ -200,7 +200,7 @@ void frob() {
}).else_if_device_has<aspect::bar>([] {
// code that uses features tied to "bar" aspect
}).otherwise([] {
// fallback code that works on all devices
// generic code that works on all devices
});
}
```
Expand Down
Loading