C++ AMP
C++ Accelerated Massive Parallelism (C++ AMP) is a native programming model that contains elements that span the C++ programming language and its runtime library.[src] It provides an easy way to write programs that compile and execute on data-parallel hardware, such as graphics cards and graphics processing units (GPUs).[src] Starting in Visual Studio 2022 (version 17.0), C++ AMP is declared as deprecated, indicating its end of support beyond Visual Studio 2022.[src] C++ AMP is a library implemented on DirectX 11 and an open specification from Microsoft for implementing data parallelism directly in C++.[src] It is intended to make programming GPUs easy for the developer by supporting a range of expertise from none (in which case the system does its best) to being more finely controllable, but still portable.[src] In Microsoft's implementation, code that cannot be run on GPUs will fall back onto one or more CPUs instead and use SSE instructions.[src] The Microsoft implementation is included in Visual Studio 2012, including debugger and profiler support.[src] The initial C++ AMP release from Microsoft requires at least Windows 7 or Windows Server 2008 R2.[src] As C++ AMP is an open specification, in time, implementations outside Microsoft should appear.[src] One early example of this is Shevlin Park, Intel's experimental implementation of C++ AMP on Clang–LLVM and Open Computing Language (OpenCL).…[src]
C++ Accelerated Massive Parallelism (C++ AMP) is a native programming model that contains elements that span the C++ programming language and its runtime library.[src] It provides an easy way to write programs that compile and execute on data-parallel hardware, such as graphics cards and graphics processing units (GPUs).[src] Starting in Visual Studio 2022 (version 17.0), C++ AMP is declared as deprecated, indicating its end of support beyond Visual Studio 2022.[src] C++ AMP is a library implemented on DirectX 11 and an open specification from Microsoft for implementing data parallelism directly in C++.[src] It is intended to make programming GPUs easy for the developer by supporting a range of expertise from none (in which case the system does its best) to being more finely controllable, but still portable.[src] In Microsoft's implementation, code that cannot be run on GPUs will fall back onto one or more CPUs instead and use SSE instructions.[src] The Microsoft implementation is included in Visual Studio 2012, including debugger and profiler support.[src] The initial C++ AMP release from Microsoft requires at least Windows 7 or Windows Server 2008 R2.[src] As C++ AMP is an open specification, in time, implementations outside Microsoft should appear.[src] One early example of this is Shevlin Park, Intel's experimental implementation of C++ AMP on Clang–LLVM and Open Computing Language (OpenCL).[src] On November 12, 2013 the HSA Foundation announced a C++ AMP compiler that outputs to OpenCL, Standard Portable Intermediate Representation (SPIR), and HSA Intermediate Language (HSAIL) supporting the current C++ AMP specification.[src] The source is available at https://github.com/RadeonOpenCompute/hcc.[src] C++ AMP support is considered obsolete and the current ROCm 1.9 series will be the last to support it.[src] The basic concepts behind C++AMP, like using C++ classes to express parallel and heterogeneous programming features, have been inspirational to the SYCL standard.[src] ==Features== Microsoft added the restrict(amp) feature, which can be applied to any function (including lambdas) to declare that the function can be executed on a C++ AMP accelerator.[src] The compiler will automatically generate a compute kernel, saving the boilerplate of management and having to use a separate language.[src] The restrict keyword instructs the compiler to statically check that the function uses only those language features that are supported by most GPUs, for example, void myFunc() restrict(amp) {…} Microsoft or other implementer of the open C++ AMP specification could add other restrict specifiers for other purposes, including for purposes that are unrelated to C++ AMP.[src] Beyond the new language feature, the rest of C++ AMP is available through the header file in the concurrency namespace.[src] The key C++ AMP classes are: array (container for data on an accelerator), array_view (wrapper for data), index (N-dimensional point), extent (N-dimensional size), accelerator (computational resource, such as a GPU, on which to allocate memory and execute), and accelerator_view (view of an accelerator).[src] The global function parallel_for_each allows writing a parallel loop.[src]
30 sentences · 30 cited inline · 0 references stored
References
No reference rows published for this article.
Cite this article
MLA
"C++ AMP." encyclopegia.org, 2025, https://encyclopegia.org/wiki/c-amp. Accessed 28 November 2026.
Chicago
"C++ AMP." encyclopegia.org. Accessed November 28, 2026. https://encyclopegia.org/wiki/c-amp.
APA
encyclopegia.org. (2025). C++ AMP. Retrieved November 28, 2026, from https://encyclopegia.org/wiki/c-amp
Accessed November 28, 2026 · CC BY-SA 4.0 · citation page · JSON