Skip to content

Commit 791667f

Browse files
[SYCL] Clarify DPC++ default C++ standard version in the documentation (#1556)
Signed-off-by: Dmitry Vodopyanov <[email protected]>
1 parent cece82e commit 791667f

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

sycl/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.2)
22

33
project(sycl-solution)
44
# Requirements
5-
set(CMAKE_CXX_STANDARD 11)
5+
set(CMAKE_CXX_STANDARD 14)
66
set(CMAKE_CXX_STANDARD_REQUIRED ON)
77
set(CMAKE_CXX_EXTENSIONS OFF)
88
option(SYCL_ENABLE_WERROR "Treat all warnings as errors in SYCL project" OFF)

sycl/doc/FAQ.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ set up a proper environment. To learn more about using the DPC++ compiler,
1919
please refer to [Users Manual](UsersManual.md). If using a special compiler
2020
is not an option for you and/or you would like to experiment without offloading
2121
code to non-host devices, you can exploit SYCL's host device feature. This
22-
gives you the ability to use any C++11 compiler. You will need to link your
22+
gives you the ability to use any C++14 compiler. You will need to link your
2323
application with the DPC++ Runtime library and provide a path to the SYCL
2424
headers directory. Please, refer to your compiler manual to learn about
2525
specific build options.

sycl/doc/GetStartedGuide.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,8 @@ class CUDASelector : public cl::sycl::device_selector {
514514

515515
## C++ standard
516516

517-
- Minimal supported C++ standard is C++11 on Linux and C++14 on Windows.
517+
- DPC++ runtime is built as C++14 library.
518+
- DPC++ compiler is building apps as C++14 apps by default.
518519

519520
## Known Issues and Limitations
520521

0 commit comments

Comments
 (0)