forked from oneapi-src/distributed-ranges-tutorial
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
53 lines (35 loc) · 1.51 KB
/
CMakeLists.txt
File metadata and controls
53 lines (35 loc) · 1.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# SPDX-FileCopyrightText: Intel Corporation
#
# SPDX-License-Identifier: BSD-3-Clause
add_compile_options(-fsycl)
add_link_options(-fsycl)
if(ENABLE_CUDA)
add_compile_options(-fsycl-targets=nvptx64-nvidia-cuda
-Wno-error=unknown-cuda-version)
add_link_options(-fsycl-targets=nvptx64-nvidia-cuda
-Wno-error=unknown-cuda-version)
endif()
add_executable(example1 example1.cpp)
target_compile_definitions(example1 INTERFACE DR_FORMAT)
target_link_libraries(example1 DR::mpi fmt::fmt)
add_executable(example2 example2.cpp)
target_compile_definitions(example2 INTERFACE DR_FORMAT)
target_link_libraries(example2 DR::mpi fmt::fmt)
add_executable(example3 example3.cpp)
target_compile_definitions(example3 INTERFACE DR_FORMAT)
target_link_libraries(example3 DR::mpi fmt::fmt)
add_executable(example4 example4.cpp)
target_compile_definitions(example4 INTERFACE DR_FORMAT)
target_link_libraries(example4 DR::mpi fmt::fmt)
add_executable(example5 example5.cpp)
target_compile_definitions(example5 INTERFACE DR_FORMAT)
target_link_libraries(example5 DR::mpi fmt::fmt)
add_executable(example6 example6.cpp)
target_compile_definitions(example6 INTERFACE DR_FORMAT)
target_link_libraries(example6 DR::mpi fmt::fmt)
add_executable(example7 example7.cpp)
target_compile_definitions(example7 INTERFACE DR_FORMAT)
target_link_libraries(example7 DR::mpi fmt::fmt)
add_executable(example8 example8.cpp)
target_compile_definitions(example8 INTERFACE DR_FORMAT)
target_link_libraries(example8 DR::mpi fmt::fmt)