Skip to content

Commit 23bb199

Browse files
vme kernels - fallback to ctni
Signed-off-by: Krystian Chmielewski <[email protected]>
1 parent ef95bfb commit 23bb199

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

manifests/manifest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ components:
3838
dest_dir: kernels_bin
3939
type: git
4040
branch: kernels_bin
41-
revision: 1982-412
41+
revision: 1982-415
4242
kmdaf:
4343
branch: kmdaf
4444
dest_dir: kmdaf

opencl/test/unit_test/CMakeLists.txt

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,13 @@ target_include_directories(igdrcl_tests BEFORE PRIVATE
127127
${NEO_SHARED_TEST_DIRECTORY}/common/helpers/includes${BRANCH_DIR_SUFFIX}
128128
)
129129

130-
function(neo_gen_kernels platform_name_with_type platform_name revision_id suffix)
130+
function(neo_gen_kernels platform_name_with_type platform_name revision_id suffix forcePatchtokenFormat)
131131
set(outputdir "${TargetDir}/${suffix}/${revision_id}/test_files/${NEO_ARCH}/")
132132

133+
if(forcePatchtokenFormat)
134+
set(formatArgument "--format" "patchtokens")
135+
endif()
136+
133137
set(kernels_to_compile)
134138
foreach(filepath ${ARGN})
135139
get_filename_component(filename ${filepath} NAME)
@@ -146,7 +150,7 @@ function(neo_gen_kernels platform_name_with_type platform_name revision_id suffi
146150

147151
add_custom_command(
148152
OUTPUT ${output_files}
149-
COMMAND ${ocloc_cmd_prefix} -q -file ${absolute_filepath} -device ${platform_name} -${NEO_BITS} -revision_id ${revision_id} -out_dir ${outputdir}
153+
COMMAND ${ocloc_cmd_prefix} -q -file ${absolute_filepath} -device ${platform_name} -${NEO_BITS} -revision_id ${revision_id} -out_dir ${outputdir} ${formatArgument}
150154
WORKING_DIRECTORY ${workdir}
151155
DEPENDS ${filepath} ocloc
152156
)
@@ -351,23 +355,23 @@ macro(macro_for_each_core_type)
351355

352356
if(MSVC OR CMAKE_SIZEOF_VOID_P EQUAL 8)
353357
foreach(REVISION_ID ${${PLATFORM_TYPE}_${CORE_TYPE}_REVISIONS})
354-
neo_gen_kernels(${family_name_with_type} ${PLATFORM_LOWER} ${REVISION_ID} ${family_name_with_type} ${PLATFORM_TEST_KERNELS})
358+
neo_gen_kernels(${family_name_with_type} ${PLATFORM_LOWER} ${REVISION_ID} ${family_name_with_type} FALSE ${PLATFORM_TEST_KERNELS})
355359
neo_gen_kernels_with_options(${family_name_with_type} ${PLATFORM_LOWER} ${REVISION_ID} ${family_name_with_type} ${TEST_KERNEL} ${TEST_KERNEL_options})
356360
endforeach()
357361

358362
#compile gen specific kernels if any were found
359363
file(GLOB_RECURSE ${CORE_TYPE_LOWER}_TEST_KERNELS test_files/*.${CORE_TYPE_LOWER})
360364
if(NOT "${${CORE_TYPE_LOWER}_TEST_KERNELS}" STREQUAL "")
361365
foreach(REVISION_ID ${${PLATFORM_TYPE}_${CORE_TYPE}_REVISIONS})
362-
neo_gen_kernels(${family_name_with_type} ${PLATFORM_LOWER} ${REVISION_ID} ${family_name_with_type} ${${CORE_TYPE_LOWER}_TEST_KERNELS})
366+
neo_gen_kernels(${family_name_with_type} ${PLATFORM_LOWER} ${REVISION_ID} ${family_name_with_type} FALSE ${${CORE_TYPE_LOWER}_TEST_KERNELS})
363367
endforeach()
364368
endif()
365369

366370
# Compile platform specific kernels if any were found
367371
file(GLOB_RECURSE ${PLATFORM_LOWER}_TEST_KERNELS test_files/*.${PLATFORM_LOWER})
368372
if(NOT "${${PLATFORM_LOWER}_TEST_KERNELS}" STREQUAL "")
369373
foreach(REVISION_ID ${${PLATFORM_TYPE}_${CORE_TYPE}_REVISIONS})
370-
neo_gen_kernels(${family_name_with_type} ${PLATFORM_LOWER} ${REVISION_ID} ${family_name_with_type} ${${PLATFORM_LOWER}_TEST_KERNELS})
374+
neo_gen_kernels(${family_name_with_type} ${PLATFORM_LOWER} ${REVISION_ID} ${family_name_with_type} FALSE ${${PLATFORM_LOWER}_TEST_KERNELS})
371375
endforeach()
372376
endif()
373377

@@ -404,7 +408,7 @@ macro(macro_for_each_core_type)
404408
endif()
405409
if(PLATFORM_VME_LOWER)
406410
foreach(REVISION_ID ${${PLATFORM_TYPE}_${CORE_TYPE}_REVISIONS})
407-
neo_gen_kernels(${family_name_with_type} ${PLATFORM_VME_LOWER} ${REVISION_ID} ${family_name_with_type} ${TEST_KERNEL_VME})
411+
neo_gen_kernels(${family_name_with_type} ${PLATFORM_VME_LOWER} ${REVISION_ID} ${family_name_with_type} TRUE ${TEST_KERNEL_VME})
408412
endforeach()
409413
endif()
410414
endif()

0 commit comments

Comments
 (0)