Skip to content

Commit 507e955

Browse files
Test for DNN_LIBS cmake variable based on OS
Signed-off-by: Ahmed, Daiyaan <[email protected]>
1 parent 35b3456 commit 507e955

File tree

5 files changed

+16
-23
lines changed

5 files changed

+16
-23
lines changed

behavior_tests/behavior_tests.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@
166166
<test testName="bt-check-unexpected-message" configFile="config/TEMPLATE_behavior_tests.xml" />
167167
<test testName="cmp-cmds-linker-entry-src-files" configFile="config/TEMPLATE_behavior_tests_lin.xml" />
168168
<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" />
170170
</tests>
171171

172172
</suite>
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
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})

behavior_tests/src/cmake_target_link_sycl_libraries/CMakeLists.txt

Lines changed: 0 additions & 22 deletions
This file was deleted.

0 commit comments

Comments
 (0)