mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-30 01:35:20 +08:00
Move local ids generation code to shared directory
Change-Id: I5b0486ceae8d67d0c1d1be56a756c102226d7e2a Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
83b0932beb
commit
4e3679b8ae
@@ -52,6 +52,15 @@ function(generate_shared_lib LIB_NAME MOCKABLE)
|
||||
endif()
|
||||
|
||||
create_project_source_tree(${LIB_NAME})
|
||||
|
||||
# Enable SSE4/AVX2 options for files that need them
|
||||
if(MSVC)
|
||||
set_source_files_properties(${CMAKE_CURRENT_SOURCE_DIR}/helpers/local_id_gen_avx2.cpp PROPERTIES COMPILE_FLAGS /arch:AVX2)
|
||||
else()
|
||||
set_source_files_properties(${CMAKE_CURRENT_SOURCE_DIR}/helpers/local_id_gen_avx2.cpp PROPERTIES COMPILE_FLAGS -mavx2)
|
||||
set_source_files_properties(${CMAKE_CURRENT_SOURCE_DIR}/helpers/local_id_gen_sse4.cpp PROPERTIES COMPILE_FLAGS -msse4.2)
|
||||
endif()
|
||||
|
||||
endfunction()
|
||||
|
||||
set(NEO_CORE_COMPILE_DEFS "")
|
||||
|
||||
Reference in New Issue
Block a user