@@ -265,60 +265,13 @@ function(neo_gen_kernels_with_internal_options platform_name_with_type platform_
265
265
set (kernels_to_compile_${platform_name_with_type} _${revision_id} ${kernels_to_compile_${platform_name_with_type} _${revision_id} } PARENT_SCOPE)
266
266
endfunction ()
267
267
268
- set (TEST_KERNEL_kernel_debug_enable
269
- "-cl-kernel-debug-enable"
270
- )
271
-
272
- function (neo_gen_kernel_with_kernel_debug_options platform_name_with_type platform_name revision_id suffix filepath )
273
- get_filename_component (filename ${filepath} NAME )
274
- get_filename_component (basename ${filepath} NAME_WE )
275
- get_filename_component (base_workdir ${filepath} DIRECTORY )
276
- get_filename_component (absolute_filepath ${filepath} ABSOLUTE )
277
-
278
- set (outputdir "${TargetDir} /${suffix} /${revision_id} /test_files/${NEO_ARCH} /" )
279
- set (workdir "${CMAKE_CURRENT_SOURCE_DIR} /${base_workdir} /" )
280
-
281
- string (REPLACE " " "_" argwospaces ${TEST_KERNEL_kernel_debug_enable} )
282
-
283
- set (outputpath_base "${outputdir} /${argwospaces} _${suffix} " )
284
-
285
- if (NOT NEO_DISABLE_BUILTINS_COMPILATION)
286
- set (output_files
287
- ${outputpath_base} .spv
288
- ${outputpath_base} .bin
289
- ${outputpath_base} .dbg
290
- )
291
-
292
- add_custom_command (
293
- OUTPUT ${output_files}
294
- COMMAND ${ocloc_cmd_prefix} -q -file ${absolute_filepath} -device ${platform_name} -revision_id ${revision_id} -${NEO_BITS} -out_dir ${outputdir} -output ${argwospaces} -internal_options ${TEST_KERNEL_kernel_debug_enable} -options "-g"
295
- WORKING_DIRECTORY ${workdir}
296
- DEPENDS ${filepath} ocloc
297
- )
298
- list (APPEND kernels_to_compile_${platform_name_with_type} _${revision_id} ${output_files} )
299
- else ()
300
- foreach (extension "spv" "bin" "dbg" )
301
- set (_file_prebuilt "${NEO_KERNELS_BIN_DIR} /${suffix} /${revision_id} /test_files/${NEO_ARCH} /${argwospaces} _${suffix} .${extension} " )
302
- add_custom_command (
303
- OUTPUT ${outputpath_base} .${extension}
304
- COMMAND ${CMAKE_COMMAND} -E make_directory ${outputdir}
305
- COMMAND ${CMAKE_COMMAND} -E copy_if_different ${_file_prebuilt} ${outputdir}
306
- )
307
-
308
- list (APPEND kernels_to_compile_${platform_name_with_type} _${revision_id} ${outputpath_base} .${extension} )
309
- endforeach ()
310
- endif ()
311
- set (kernels_to_compile_${platform_name_with_type} _${revision_id} ${kernels_to_compile_${platform_name_with_type} _${revision_id} } PARENT_SCOPE)
312
- endfunction ()
313
-
314
268
set (TEST_KERNEL test_files/CopyBuffer_simd16.cl)
315
269
316
270
set (TEST_KERNEL_options
317
271
"-cl-fast-relaxed-math"
318
272
"-cl-finite-math-only"
319
273
"-cl-kernel-arg-info"
320
274
"-x spir -spir-std=1.2"
321
- "-g"
322
275
)
323
276
324
277
set (TEST_KERNEL_2_0_options
@@ -347,14 +300,6 @@ set(TEST_KERNEL_VME
347
300
${CMAKE_CURRENT_SOURCE_DIR} /test_files/media_kernels_frontend.cl
348
301
)
349
302
350
- set (TEST_KERNEL_SIP_DEBUG_options
351
- "-cl-include-sip-kernel-debug -cl-include-sip-csr -cl-set-bti:0"
352
- )
353
-
354
- set (TEST_KERNEL_SIP_DEBUG_LOCAL_options
355
- "-cl-include-sip-kernel-local-debug -cl-include-sip-csr -cl-set-bti:0"
356
- )
357
-
358
303
set (TEST_KERNEL_BINDLESS_internal_options
359
304
"-cl-intel-use-bindless-mode -cl-intel-use-bindless-advanced-mode"
360
305
)
0 commit comments