Skip to content

Commit c4247d7

Browse files
[C++ for OpenCL] Added references to execution and memory models (#511)
Improved introduction by highlighting the fundamental difference in the execution and memory model between OpenCL and C/C++. Co-authored-by: Sven van Haastregt <sven.vanhaastregt@arm.com>
1 parent 6a571dc commit c4247d7

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

cxx4opencl/intro.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,12 @@
77

88
This language is built on top of OpenCL C v2.0 and {cpp}17 enabling
99
most of regular {cpp} features in OpenCL kernel code. Most functionality
10-
from OpenCL C and {cpp} is inherited.
10+
from {cpp} and OpenCL C is inherited. Since both OpenCL C and {cpp} are
11+
derived from C and moreover {cpp} is almost fully backward compatible with C,
12+
the main design principle of {cpp} for OpenCL is to reapply existing OpenCL
13+
concepts to {cpp}. Therefore, it is important to refer to OpenCL v2.0 section
14+
3.2 and section 3.3 detailing fundamental differences of OpenCL execution and
15+
memory models from the conventional C and {cpp} view.
1116

1217
This document describes the programming language in details. It is not
1318
structured as a standalone document, but rather as an addition to `OpenCL C

0 commit comments

Comments
 (0)