Skip to content

Commit 6518722

Browse files
authored
Merge pull request KhronosGroup#274 from gmlueck/gmlueck/sycl-external-linkage
Small clarification to SYCL_EXTERNAL
2 parents cecab45 + ed9a029 commit 6518722

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

adoc/chapters/device_compiler.adoc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -853,6 +853,9 @@ When a function is declared with [code]#SYCL_EXTERNAL#, that function must also
853853
be defined in some translation unit, where the function is declared with
854854
[code]#SYCL_EXTERNAL#.
855855

856+
A function may only be declared with [code]#SYCL_EXTERNAL# if it has external
857+
linkage by normal C++ rules.
858+
856859
A function declared with [code]#SYCL_EXTERNAL# may be called from both host and
857860
device code. The macro has no effect when the function is called from host
858861
code.

0 commit comments

Comments
 (0)