Skip to content

Commit 015deb1

Browse files
[SYCL][Doc][NFC] Rename 'fallback' to 'generic' in two specs (#12544)
The change was made based on a comment #12259 (review)
1 parent e94b247 commit 015deb1

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

sycl/doc/extensions/experimental/sycl_ext_oneapi_device_architecture.asciidoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -973,7 +973,7 @@ int main() {
973973
syclex::if_architecture_is<syclex::architecture::intel_gpu_pvc>([&]{
974974
// Code for PVC
975975
}).otherwise([&]{
976-
// Fallback code
976+
// Generic code
977977
});
978978
});
979979
@@ -987,7 +987,7 @@ int main() {
987987
syclex::architecture::amd_gpu_gfx1013>([&]{
988988
// Code for AMD devices between gfx1010 and gfx1013 (inclusive)
989989
}).otherwise([&]{
990-
// Fallback code
990+
// Generic code
991991
});
992992
});
993993
}

sycl/doc/extensions/proposed/sycl_ext_oneapi_device_if.asciidoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ executes the `if_device_has` function has **all** of the aspects listed in this
152152
pack. If the condition is `true`, the implementation calls `fn`. Otherwise,
153153
the function `fn` is potentially discarded as described below.
154154

155-
=== Fallback code
155+
=== Generic code
156156

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

0 commit comments

Comments
 (0)