|
1 | 1 | --- |
2 | | -description: "Learn more about: Using accelerator and accelerator_view Objects" |
3 | 2 | title: "Using accelerator and accelerator_view Objects" |
| 3 | +description: "Learn more about: Using accelerator and accelerator_view Objects" |
4 | 4 | ms.date: "11/04/2016" |
5 | 5 | --- |
6 | 6 | # Using accelerator and accelerator_view Objects |
7 | 7 |
|
8 | | -You can use the [accelerator](../../parallel/amp/reference/accelerator-class.md) and [accelerator_view](../../parallel/amp/reference/accelerator-view-class.md) classes to specify the device or emulator to run your C++ AMP code on. A system might have several devices or emulators that differ by amount of memory, shared memory support, debugging support, or double-precision support. C++ Accelerated Massive Parallelism (C++ AMP) provides APIs that you can use to examine the available accelerators, set one as the default, specify multiple accelerator_views for multiple calls to parallel_for_each, and perform special debugging tasks. |
| 8 | +You can use the [accelerator](reference/accelerator-class.md) and [accelerator_view](reference/accelerator-view-class.md) classes to specify the device or emulator to run your C++ AMP code on. A system might have several devices or emulators that differ by amount of memory, shared memory support, debugging support, or double-precision support. C++ Accelerated Massive Parallelism (C++ AMP) provides APIs that you can use to examine the available accelerators, set one as the default, specify multiple accelerator_views for multiple calls to parallel_for_each, and perform special debugging tasks. |
9 | 9 |
|
10 | 10 | > [!NOTE] |
11 | 11 | > C++ AMP headers are deprecated starting with Visual Studio 2022 version 17.0. |
@@ -45,7 +45,7 @@ void default_properties() { |
45 | 45 |
|
46 | 46 | ### CPPAMP_DEFAULT_ACCELERATOR Environment Variable |
47 | 47 |
|
48 | | -You can set the CPPAMP_DEFAULT_ACCELERATOR environment variable to specify the `accelerator::device_path` of the default accelerator. The path is hardware-dependent. The following code uses the `accelerator::get_all` function to retrieve a list of the available accelerators and then displays the path and characteristics of each accelerator. |
| 48 | +You can set the `CPPAMP_DEFAULT_ACCELERATOR` environment variable to specify the `accelerator::device_path` of the default accelerator. The path is hardware-dependent. The following code uses the `accelerator::get_all` function to retrieve a list of the available accelerators and then displays the path and characteristics of each accelerator. |
49 | 49 |
|
50 | 50 | ```cpp |
51 | 51 | void list_all_accelerators() |
@@ -178,6 +178,6 @@ The C++ AMP runtime supports interoperability between the `accelerator_view` cla |
178 | 178 |
|
179 | 179 | ## See also |
180 | 180 |
|
181 | | -[C++ AMP (C++ Accelerated Massive Parallelism)](../../parallel/amp/cpp-amp-cpp-accelerated-massive-parallelism.md)<br/> |
182 | | -[Debugging GPU Code](/visualstudio/debugger/debugging-gpu-code)<br/> |
183 | | -[accelerator_view Class](../../parallel/amp/reference/accelerator-view-class.md) |
| 181 | +[C++ AMP (C++ Accelerated Massive Parallelism)](cpp-amp-cpp-accelerated-massive-parallelism.md)\ |
| 182 | +[Debugging GPU Code](/visualstudio/debugger/debugging-gpu-code)\ |
| 183 | +[accelerator_view Class](reference/accelerator-view-class.md) |
0 commit comments