mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-21 09:14:47 +08:00
add cmake variable to level zero black box tests describing include directory
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
6c7f500649
commit
9c82238c1e
@@ -16,8 +16,12 @@ add_library(${L0_BLACK_BOX_TEST_SHARED_LIB} STATIC
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/common/zello_compile.h
|
||||
)
|
||||
|
||||
if(NOT DEFINED L0_BLACK_BOX_OCLOC_HEADER_DIR)
|
||||
set(L0_BLACK_BOX_OCLOC_HEADER_DIR "${NEO_SOURCE_DIR}/shared/offline_compiler/source")
|
||||
endif()
|
||||
|
||||
target_link_libraries(${L0_BLACK_BOX_TEST_SHARED_LIB} PUBLIC ocloc_lib)
|
||||
target_include_directories(${L0_BLACK_BOX_TEST_SHARED_LIB} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/common)
|
||||
target_include_directories(${L0_BLACK_BOX_TEST_SHARED_LIB} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/common ${L0_BLACK_BOX_OCLOC_HEADER_DIR})
|
||||
|
||||
set_target_properties(${L0_BLACK_BOX_TEST_SHARED_LIB} PROPERTIES FOLDER ${L0_BLACK_BOX_TEST_PROJECT_FOLDER})
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
#include "zello_compile.h"
|
||||
|
||||
#include "shared/offline_compiler/source/ocloc_api.h"
|
||||
#include "ocloc_api.h"
|
||||
|
||||
std::vector<uint8_t> compileToSpirV(const std::string &src, const std::string &options, std::string &outCompilerLog) {
|
||||
std::vector<uint8_t> ret;
|
||||
|
||||
Reference in New Issue
Block a user