@@ -127,9 +127,13 @@ target_include_directories(igdrcl_tests BEFORE PRIVATE
127
127
${NEO_SHARED_TEST_DIRECTORY} /common/helpers/includes${BRANCH_DIR_SUFFIX}
128
128
)
129
129
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 )
131
131
set (outputdir "${TargetDir} /${suffix} /${revision_id} /test_files/${NEO_ARCH} /" )
132
132
133
+ if (forcePatchtokenFormat)
134
+ set (formatArgument "--format" "patchtokens" )
135
+ endif ()
136
+
133
137
set (kernels_to_compile)
134
138
foreach (filepath ${ARGN} )
135
139
get_filename_component (filename ${filepath} NAME )
@@ -146,7 +150,7 @@ function(neo_gen_kernels platform_name_with_type platform_name revision_id suffi
146
150
147
151
add_custom_command (
148
152
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}
150
154
WORKING_DIRECTORY ${workdir}
151
155
DEPENDS ${filepath} ocloc
152
156
)
@@ -351,23 +355,23 @@ macro(macro_for_each_core_type)
351
355
352
356
if (MSVC OR CMAKE_SIZEOF_VOID_P EQUAL 8)
353
357
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} )
355
359
neo_gen_kernels_with_options(${family_name_with_type} ${PLATFORM_LOWER} ${REVISION_ID} ${family_name_with_type} ${TEST_KERNEL} ${TEST_KERNEL_options} )
356
360
endforeach ()
357
361
358
362
#compile gen specific kernels if any were found
359
363
file (GLOB_RECURSE ${CORE_TYPE_LOWER} _TEST_KERNELS test_files/*.${CORE_TYPE_LOWER} )
360
364
if (NOT "${${CORE_TYPE_LOWER} _TEST_KERNELS}" STREQUAL "" )
361
365
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})
363
367
endforeach ()
364
368
endif ()
365
369
366
370
# Compile platform specific kernels if any were found
367
371
file (GLOB_RECURSE ${PLATFORM_LOWER} _TEST_KERNELS test_files/*.${PLATFORM_LOWER} )
368
372
if (NOT "${${PLATFORM_LOWER} _TEST_KERNELS}" STREQUAL "" )
369
373
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})
371
375
endforeach ()
372
376
endif ()
373
377
@@ -404,7 +408,7 @@ macro(macro_for_each_core_type)
404
408
endif ()
405
409
if (PLATFORM_VME_LOWER)
406
410
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} )
408
412
endforeach ()
409
413
endif ()
410
414
endif ()
0 commit comments