diff options
Diffstat (limited to 'utests/CMakeLists.txt')
-rw-r--r-- | utests/CMakeLists.txt | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/utests/CMakeLists.txt b/utests/CMakeLists.txt index 704438df..a731ab05 100644 --- a/utests/CMakeLists.txt +++ b/utests/CMakeLists.txt @@ -180,10 +180,15 @@ set (utests_sources utest_file_map.cpp utest_helper.cpp) +set(GEN_PCI_ID) +execute_process(COMMAND "${CMAKE_CURRENT_SOURCE_DIR}/../src/GetGenID.sh" + OUTPUT_VARIABLE GEN_PCI_ID) + +message(STATUS "Platform Gen PCI id is " ${GEN_PCI_ID}) SET (kernel_bin ${CMAKE_CURRENT_SOURCE_DIR}/../kernels/compiler_ceil) ADD_CUSTOM_COMMAND( OUTPUT ${kernel_bin}.bin - COMMAND ${GBE_BIN_GENERATER} ${kernel_bin}.cl -o${kernel_bin}.bin + COMMAND ${GBE_BIN_GENERATER} ${kernel_bin}.cl -o${kernel_bin}.bin -t${GEN_PCI_ID} DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/../backend/src/gbe_bin_generater ${kernel_bin}.cl ) |