Skip to content

Commit

Permalink
[SYCL][Doc][NFC] Rename 'fallback' to 'generic' in two specs (#12544)
Browse files Browse the repository at this point in the history
The change was made based on a comment
#12259 (review)
  • Loading branch information
dm-vodopyanov committed Feb 5, 2024
1 parent e94b247 commit 015deb1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
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

0 comments on commit 015deb1

Please sign in to comment.