We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7db7b6c commit 86368b2Copy full SHA for 86368b2
CMakeLists.txt
@@ -8,9 +8,25 @@ set(CMAKE_CXX_STANDARD_REQUIRED True)
8
9
project(
10
distributed_ranges_tutorial
11
+ LANGUAGES CXX
12
VERSION 0.1
13
DESCRIPTION "Distributed ranges tutorial")
14
15
+if(NOT DEFINED ENV{CXX})
16
+ message(FATAL_ERROR "CXX environment variable is not defined")
17
+endif()
18
+
19
+if(NOT "${CMAKE_CXX_COMPILER_ID}" STREQUAL "IntelLLVM")
20
+ message(FATAL_ERROR "ICPX compiler is required. Please set CXX to icpx.")
21
22
23
+include(CheckCXXCompilerFlag)
24
+check_cxx_compiler_flag(-fsycl COMPILER_SUPPORTS_FSYCL)
25
26
+if(NOT COMPILER_SUPPORTS_FSYCL)
27
+ message(FATAL_ERROR "A compiler with SYCL support is required.")
28
29
30
find_package(MPI REQUIRED)
31
32
add_subdirectory(src)
0 commit comments