File tree Expand file tree Collapse file tree 5 files changed +16
-23
lines changed
cmake_target_link_libraries
cmake_target_link_sycl_libraries Expand file tree Collapse file tree 5 files changed +16
-23
lines changed Original file line number Diff line number Diff line change 166
166
<test testName =" bt-check-unexpected-message" configFile =" config/TEMPLATE_behavior_tests.xml" />
167
167
<test testName =" cmp-cmds-linker-entry-src-files" configFile =" config/TEMPLATE_behavior_tests_lin.xml" />
168
168
<test testName =" cmake_dpct_compile_sycl_code" configFile =" config/TEMPLATE_behavior_tests.xml" />
169
- <test testName =" cmake_target_link_sycl_libraries " configFile =" config/TEMPLATE_behavior_tests_lin .xml" />
169
+ <test testName =" cmake_target_link_libraries " configFile =" config/TEMPLATE_behavior_tests .xml" />
170
170
</tests >
171
171
172
172
</suite >
Original file line number Diff line number Diff line change
1
+ cmake_minimum_required (VERSION 3.24 )
2
+ project (foo LANGUAGES CXX )
3
+ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsycl" )
4
+ find_program (dpct_bin_path NAMES dpct PATHS )
5
+ get_filename_component (bin_path_of_dpct ${dpct_bin_path} DIRECTORY )
6
+ set (dpct_cmake_file_path "${bin_path_of_dpct} /../cmake/dpct.cmake" )
7
+ include (${dpct_cmake_file_path} )
8
+ find_package (CUDAToolkit )
9
+ include_directories (${CUDNN_INCLUDE_DIR} )
10
+
11
+ set (SOURCES
12
+ ${CMAKE_SOURCE_DIR} /main.dp.cpp
13
+ )
14
+ add_executable (foo-bar ${SOURCES} )
15
+ target_link_libraries (foo-bar PUBLIC -qmkl ${DNN_LIB} )
File renamed without changes.
File renamed without changes.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments