diff --git a/level_zero/core/test/unit_tests/gen_kernel.cmake b/level_zero/core/test/unit_tests/gen_kernel.cmake index efd1ce7d74d3b..2edca0f3c5355 100644 --- a/level_zero/core/test/unit_tests/gen_kernel.cmake +++ b/level_zero/core/test/unit_tests/gen_kernel.cmake @@ -6,18 +6,6 @@ function(level_zero_gen_kernels target platform_name suffix options) - if(NOT DEFINED cloc_cmd_prefix) - if(WIN32) - set(cloc_cmd_prefix ocloc) - else() - if(DEFINED NEO__IGC_LIBRARY_PATH) - set(cloc_cmd_prefix LD_LIBRARY_PATH=${NEO__IGC_LIBRARY_PATH}:$ $) - else() - set(cloc_cmd_prefix LD_LIBRARY_PATH=$ $) - endif() - endif() - endif() - set(outputdir "${TargetDir}/level_zero/${suffix}/test_files/${NEO_ARCH}/") set(results) @@ -34,9 +22,9 @@ function(level_zero_gen_kernels target platform_name suffix options) ) add_custom_command( - COMMAND echo generate ${cloc_cmd_prefix} -q -file ${filename} -device ${platform_name} -out_dir ${outputdir} -options "${options}" + COMMAND echo generate ocloc -q -file ${filename} -device ${platform_name} -out_dir ${outputdir} -options "${options}" OUTPUT ${output_files} - COMMAND ${cloc_cmd_prefix} -q -file ${filename} -device ${platform_name} -out_dir ${outputdir} -options "${options}" + COMMAND ocloc -q -file ${filename} -device ${platform_name} -out_dir ${outputdir} -options "${options}" WORKING_DIRECTORY ${workdir} DEPENDS ${filepath} ocloc ) diff --git a/opencl/source/built_ins/kernels/CMakeLists.txt b/opencl/source/built_ins/kernels/CMakeLists.txt index 660be4988fdc5..40f3dadfa3ae3 100644 --- a/opencl/source/built_ins/kernels/CMakeLists.txt +++ b/opencl/source/built_ins/kernels/CMakeLists.txt @@ -61,22 +61,11 @@ if(NOT NEO_DISABLE_BUILTINS_COMPILATION) unset(BUILTIN_CPP) # set variable outside function set(BUILTIN_CPP built_ins/${NEO_ARCH}/${gen_type_lower}/${BASENAME}_${family_name_with_type}.cpp PARENT_SCOPE) - if(NOT DEFINED cloc_cmd_prefix) - if(WIN32) - set(cloc_cmd_prefix ocloc) - else() - if(DEFINED NEO__IGC_LIBRARY_PATH) - set(cloc_cmd_prefix LD_LIBRARY_PATH=${NEO__IGC_LIBRARY_PATH}:$ $) - else() - set(cloc_cmd_prefix LD_LIBRARY_PATH=$ $) - endif() - endif() - endif() list(APPEND __cloc__options__ "-cl-kernel-arg-info") add_custom_command( OUTPUT ${OUTPUT_FILES} - COMMAND ${cloc_cmd_prefix} -q -file ${FILENAME} -device ${DEFAULT_SUPPORTED_${gen_type}_${platform_type}_PLATFORM} ${builtin_options} -${bits} -out_dir ${OUTPUTDIR} -options "$" + COMMAND ocloc -q -file ${FILENAME} -device ${DEFAULT_SUPPORTED_${gen_type}_${platform_type}_PLATFORM} ${builtin_options} -${bits} -out_dir ${OUTPUTDIR} -options "$" WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} DEPENDS ${builtin} ocloc copy_compiler_files ) diff --git a/opencl/source/scheduler/scheduler_binary.cmake b/opencl/source/scheduler/scheduler_binary.cmake index 262810fc9b418..cce59e6dc4be1 100644 --- a/opencl/source/scheduler/scheduler_binary.cmake +++ b/opencl/source/scheduler/scheduler_binary.cmake @@ -33,23 +33,12 @@ function(compile_kernel target gen_type platform_type kernel) set(SCHEDULER_CPP "${OUTPUTDIR}/${BASENAME}_${family_name_with_type}.cpp") - if(NOT DEFINED cloc_cmd_prefix) - if(WIN32) - set(cloc_cmd_prefix ocloc) - else() - if(DEFINED NEO__IGC_LIBRARY_PATH) - set(cloc_cmd_prefix LD_LIBRARY_PATH=${NEO__IGC_LIBRARY_PATH}:$ $) - else() - set(cloc_cmd_prefix LD_LIBRARY_PATH=$ $) - endif() - endif() - endif() list(APPEND __cloc__options__ "-cl-kernel-arg-info") list(APPEND __cloc__options__ "-cl-std=CL2.0") list(APPEND __cloc__options__ "-cl-intel-disable-a64WA") add_custom_command( OUTPUT ${OUTPUTPATH} - COMMAND ${cloc_cmd_prefix} -q -file ${kernel} -device ${DEFAULT_SUPPORTED_${gen_type}_${platform_type}_PLATFORM} -cl-intel-greater-than-4GB-buffer-required -${NEO_BITS} -out_dir ${OUTPUTDIR} -cpp_file -options "$" -internal_options "-cl-intel-no-spill" + COMMAND ocloc -q -file ${kernel} -device ${DEFAULT_SUPPORTED_${gen_type}_${platform_type}_PLATFORM} -cl-intel-greater-than-4GB-buffer-required -${NEO_BITS} -out_dir ${OUTPUTDIR} -cpp_file -options "$" -internal_options "-cl-intel-no-spill" WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} DEPENDS ${kernel} ocloc copy_compiler_files ) diff --git a/opencl/test/unit_test/CMakeLists.txt b/opencl/test/unit_test/CMakeLists.txt index 85b55ca76d7c2..1a6ff00f82a08 100644 --- a/opencl/test/unit_test/CMakeLists.txt +++ b/opencl/test/unit_test/CMakeLists.txt @@ -194,18 +194,6 @@ target_include_directories(igdrcl_tests BEFORE PRIVATE ${NEO_SHARED_TEST_DIRECTORY}/common/helpers/includes${BRANCH_DIR_SUFFIX} ) -if(NOT DEFINED cloc_cmd_prefix) - if(WIN32) - set(cloc_cmd_prefix ocloc) - else() - if(DEFINED NEO__IGC_LIBRARY_PATH) - set(cloc_cmd_prefix LD_LIBRARY_PATH=${NEO__IGC_LIBRARY_PATH}:$ $) - else() - set(cloc_cmd_prefix LD_LIBRARY_PATH=$ $) - endif() - endif() -endif() - function(neo_gen_kernels platform_name_with_type platform_name revision_id suffix) set(outputdir "${TargetDir}/${suffix}/${revision_id}/test_files/${NEO_ARCH}/") @@ -224,7 +212,7 @@ function(neo_gen_kernels platform_name_with_type platform_name revision_id suffi add_custom_command( OUTPUT ${output_files} - COMMAND ${cloc_cmd_prefix} -q -file ${filename} -device ${platform_name} -${NEO_BITS} -revision_id ${revision_id} -out_dir ${outputdir} + COMMAND ocloc -q -file ${filename} -device ${platform_name} -${NEO_BITS} -revision_id ${revision_id} -out_dir ${outputdir} WORKING_DIRECTORY ${workdir} DEPENDS ${filepath} ocloc ) @@ -257,7 +245,7 @@ function(neo_gen_kernels_with_options platform_name_with_type platform_name revi add_custom_command( OUTPUT ${output_files} - COMMAND ${cloc_cmd_prefix} -file ${filename} -device ${platform_name} -${NEO_BITS} -out_dir ${outputdir} -revision_id ${revision_id} -options ${arg} -options_name + COMMAND ocloc -file ${filename} -device ${platform_name} -${NEO_BITS} -out_dir ${outputdir} -revision_id ${revision_id} -options ${arg} -options_name WORKING_DIRECTORY ${workdir} DEPENDS ${filearg} ocloc ) @@ -296,7 +284,7 @@ function(neo_gen_kernels_with_internal_options platform_name_with_type platform_ add_custom_command( OUTPUT ${output_files} - COMMAND ${cloc_cmd_prefix} -file ${filename} -device ${platform_name} -revision_id ${revision_id} -${NEO_BITS} -out_dir ${outputdir} ${output_name} -internal_options ${ARGN} + COMMAND ocloc -file ${filename} -device ${platform_name} -revision_id ${revision_id} -${NEO_BITS} -out_dir ${outputdir} ${output_name} -internal_options ${ARGN} WORKING_DIRECTORY ${workdir} DEPENDS ${filearg} ocloc ) @@ -330,7 +318,7 @@ function(neo_gen_kernel_with_kernel_debug_options platform_name_with_type platfo add_custom_command( OUTPUT ${output_files} - COMMAND ${cloc_cmd_prefix} -q -file ${filename} -device ${platform_name} -revision_id ${revision_id} -${NEO_BITS} -out_dir ${outputdir} -output ${argwospaces} -internal_options ${TEST_KERNEL_kernel_debug_enable} -options "-g" + COMMAND ocloc -q -file ${filename} -device ${platform_name} -revision_id ${revision_id} -${NEO_BITS} -out_dir ${outputdir} -output ${argwospaces} -internal_options ${TEST_KERNEL_kernel_debug_enable} -options "-g" WORKING_DIRECTORY ${workdir} DEPENDS ${filepath} ocloc ) @@ -355,7 +343,7 @@ function(neo_gen_kernel_from_ll platform_name_with_type platform_name suffix fil add_custom_command( OUTPUT ${output_files} - COMMAND ${cloc_cmd_prefix} -q -file ${filename} -output ${output_name} -device ${platform_name} -${NEO_BITS} -out_dir ${outputdir} -internal_options ${compile_options} -llvm_input + COMMAND ocloc -q -file ${filename} -output ${output_name} -device ${platform_name} -${NEO_BITS} -out_dir ${outputdir} -internal_options ${compile_options} -llvm_input WORKING_DIRECTORY ${workdir} DEPENDS ${filepath} ocloc ) diff --git a/shared/offline_compiler/source/CMakeLists.txt b/shared/offline_compiler/source/CMakeLists.txt index e5262f5b59b31..2b6718ba562f2 100644 --- a/shared/offline_compiler/source/CMakeLists.txt +++ b/shared/offline_compiler/source/CMakeLists.txt @@ -4,9 +4,8 @@ # SPDX-License-Identifier: MIT # -project(${OCLOC_NAME}_lib) +project(ocloc_lib) -set(OCLOC_NAME "ocloc") set(OCLOC_FOLDER_NAME "offline_compiler") set(CLOC_LIB_SRCS_LIB @@ -146,12 +145,12 @@ set(CLOC_LIB_SRCS ${CLOC_LIB_SRCS_LIB} ${CMAKE_CURRENT_SOURCE_DIR}/CMakeLists.txt ) -add_library(${OCLOC_NAME}_lib SHARED ${CLOC_LIB_SRCS}) +add_library(ocloc_lib SHARED ${CLOC_LIB_SRCS}) add_subdirectories() -create_project_source_tree(${OCLOC_NAME}_lib) -set_target_properties(${OCLOC_NAME}_lib PROPERTIES FOLDER ${OCLOC_FOLDER_NAME}) +create_project_source_tree(ocloc_lib) +set_target_properties(ocloc_lib PROPERTIES FOLDER ${OCLOC_FOLDER_NAME}) set(CLOC_LIB_INCLUDES ${ENGINE_NODE_DIR} @@ -162,20 +161,20 @@ set(CLOC_LIB_INCLUDES ${NEO__IGC_INCLUDE_DIR} ) -target_include_directories(${OCLOC_NAME}_lib BEFORE PRIVATE ${CLOC_LIB_INCLUDES}) -target_include_directories(${OCLOC_NAME}_lib BEFORE PRIVATE ${IGA_INCLUDE_DIR}) +target_include_directories(ocloc_lib BEFORE PRIVATE ${CLOC_LIB_INCLUDES}) +target_include_directories(ocloc_lib BEFORE PRIVATE ${IGA_INCLUDE_DIR}) -target_compile_definitions(${OCLOC_NAME}_lib PUBLIC ${CLOC_LIB_LIB_FLAGS_DEFINITIONS} ${SUPPORTED_GEN_FLAGS_DEFINITONS} DEFAULT_PLATFORM=${DEFAULT_SUPPORTED_PLATFORM} +target_compile_definitions(ocloc_lib PUBLIC ${CLOC_LIB_LIB_FLAGS_DEFINITIONS} ${SUPPORTED_GEN_FLAGS_DEFINITONS} DEFAULT_PLATFORM=${DEFAULT_SUPPORTED_PLATFORM} IGA_LIBRARY_NAME=${CMAKE_SHARED_LIBRARY_PREFIX}${IGA_LIBRARY_NAME}${CMAKE_SHARED_LIBRARY_SUFFIX} ) -target_compile_definitions(${OCLOC_NAME}_lib PUBLIC ${NEO__IGC_COMPILE_DEFINITIONS}) +target_compile_definitions(ocloc_lib PUBLIC ${NEO__IGC_COMPILE_DEFINITIONS}) if(MSVC) - target_link_libraries(${OCLOC_NAME}_lib dbghelp) + target_link_libraries(ocloc_lib dbghelp) endif() if(UNIX) - target_link_libraries(${OCLOC_NAME}_lib dl pthread) + target_link_libraries(ocloc_lib dl pthread) endif() set(CLOC_LIB_SRCS_LIB ${CLOC_LIB_SRCS_LIB} PARENT_SCOPE) @@ -185,11 +184,11 @@ set(OCLOC_SRCS ${OCLOC_DIRECTORY}/source/main.cpp ) -add_executable(${OCLOC_NAME} ${OCLOC_SRCS}) -target_link_libraries(${OCLOC_NAME} ${OCLOC_NAME}_lib) +add_executable(ocloc ${OCLOC_SRCS}) +target_link_libraries(ocloc ocloc_lib) -create_project_source_tree(${OCLOC_NAME}) -set_target_properties(${OCLOC_NAME} PROPERTIES FOLDER ${OCLOC_FOLDER_NAME}) +create_project_source_tree(ocloc) +set_target_properties(ocloc PROPERTIES FOLDER ${OCLOC_FOLDER_NAME}) if(MSVC) if(CMAKE_SIZEOF_VOID_P EQUAL 4) @@ -203,42 +202,42 @@ endif() if(UNIX) if(NEO_BUILD_DEBUG_SYMBOLS_PACKAGE) - get_filename_component(lib_file_name $ NAME_WE) + get_filename_component(lib_file_name $ NAME_WE) set(symbols_file_name ${lib_file_name}.debug) - set(debug_symbols_target_name "${STRIP_SYMBOLS_TARGET}_${OCLOC_NAME}_lib") + set(debug_symbols_target_name "${STRIP_SYMBOLS_TARGET}_ocloc_lib") add_custom_target(${debug_symbols_target_name} COMMAND sh -c "objcopy --only-keep-debug ${lib_file_name} ${symbols_file_name}" COMMAND sh -c "strip -g ${lib_file_name}" COMMAND sh -c "objcopy --add-gnu-debuglink=${symbols_file_name} ${lib_file_name}" ) - add_dependencies(${debug_symbols_target_name} ${OCLOC_NAME}_lib) + add_dependencies(${debug_symbols_target_name} ocloc_lib) add_dependencies(${STRIP_SYMBOLS_TARGET} ${debug_symbols_target_name}) set_property(GLOBAL APPEND PROPERTY DEBUG_SYMBOL_FILES "${symbols_file_name}") endif() - set_property(GLOBAL APPEND PROPERTY NEO_OCL_COMPONENTS_LIST ${OCLOC_NAME}) - install(FILES $ + set_property(GLOBAL APPEND PROPERTY NEO_OCL_COMPONENTS_LIST ocloc) + install(FILES $ DESTINATION ${CMAKE_INSTALL_BINDIR} PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE - COMPONENT ${OCLOC_NAME} + COMPONENT ocloc ) - install(FILES $ + install(FILES $ DESTINATION ${CMAKE_INSTALL_LIBDIR} PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE - COMPONENT ${OCLOC_NAME} + COMPONENT ocloc ) install(FILES ${OCLOC_DIRECTORY}/source/ocloc_api.h DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ - COMPONENT ${OCLOC_NAME} + COMPONENT ocloc ) elseif(WIN32) if(NEO_WINDOWS_INSTALL) - install(TARGETS ${OCLOC_NAME} + install(TARGETS ocloc DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT ocloc ) - install(TARGETS ${OCLOC_NAME}_lib + install(TARGETS ocloc_lib DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT ocloc ) @@ -249,8 +248,8 @@ elseif(WIN32) endif() endif() -set(OCLOC_OUTPUT_NAME "${OCLOC_NAME}${OCLOC_BITNESS_SUFFIX}") -set_target_properties(${OCLOC_NAME}_lib PROPERTIES OUTPUT_NAME ${OCLOC_OUTPUT_NAME}) +set(OCLOC_OUTPUT_NAME "ocloc${OCLOC_BITNESS_SUFFIX}") +set_target_properties(ocloc_lib PROPERTIES OUTPUT_NAME ${OCLOC_OUTPUT_NAME}) add_custom_target(copy_compiler_files DEPENDS ${NEO__IGC_TARGETS}) set_target_properties(copy_compiler_files PROPERTIES FOLDER ${OCLOC_FOLDER_NAME}) @@ -260,8 +259,8 @@ if(WIN32) add_custom_command( TARGET copy_compiler_files PRE_BUILD - COMMAND ${CMAKE_COMMAND} -E make_directory $ - COMMAND ${CMAKE_COMMAND} -E copy_if_different $ $ + COMMAND ${CMAKE_COMMAND} -E make_directory $ + COMMAND ${CMAKE_COMMAND} -E copy_if_different $ $ ) endforeach() endif() diff --git a/shared/source/built_ins/kernels/CMakeLists.txt b/shared/source/built_ins/kernels/CMakeLists.txt index 929b981fe16f4..78d44fa4de2af 100644 --- a/shared/source/built_ins/kernels/CMakeLists.txt +++ b/shared/source/built_ins/kernels/CMakeLists.txt @@ -63,22 +63,11 @@ if(NOT NEO_DISABLE_BUILTINS_COMPILATION) ${OUTPUTDIR}/${mode}_${BASENAME}_${family_name_with_type}.spv ) - if(NOT DEFINED cloc_cmd_prefix) - if(WIN32) - set(cloc_cmd_prefix ocloc) - else() - if(DEFINED NEO__IGC_LIBRARY_PATH) - set(cloc_cmd_prefix LD_LIBRARY_PATH=${NEO__IGC_LIBRARY_PATH}:$ $) - else() - set(cloc_cmd_prefix LD_LIBRARY_PATH=$ $) - endif() - endif() - endif() list(APPEND __cloc__options__ "-cl-kernel-arg-info") set(INTERNAL_OPTIONS "${${mode}_OPTIONS}") add_custom_command( OUTPUT ${OUTPUT_FILE_SPV} - COMMAND ${cloc_cmd_prefix} -q -file ${FILENAME} -spv_only -device ${DEFAULT_SUPPORTED_${gen_type}_${platform_type}_PLATFORM} ${builtin_options} -${bits} -output ${mode}_${BASENAME} -out_dir ${OUTPUTDIR} ${INTERNAL_OPTIONS} -options "$" + COMMAND ocloc -q -file ${FILENAME} -spv_only -device ${DEFAULT_SUPPORTED_${gen_type}_${platform_type}_PLATFORM} ${builtin_options} -${bits} -output ${mode}_${BASENAME} -out_dir ${OUTPUTDIR} ${INTERNAL_OPTIONS} -options "$" WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} DEPENDS ${builtin} ocloc copy_compiler_files ) @@ -94,7 +83,7 @@ if(NOT NEO_DISABLE_BUILTINS_COMPILATION) list(APPEND BUILTINS_COMMANDS "${OUTPUT_FILE_CPP}") add_custom_command( OUTPUT ${OUTPUT_FILES_BINARIES} - COMMAND ${cloc_cmd_prefix} -q -file ${OUTPUT_FILE_SPV} -spirv_input -device ${DEFAULT_SUPPORTED_${gen_type}_${platform_type}_PLATFORM} ${builtin_options} -${bits} -output ${mode}_${BASENAME}_${REVISION_ID} -out_dir ${OUTPUTDIR} -revision_id ${REVISION_ID} ${INTERNAL_OPTIONS} -options "$" + COMMAND ocloc -q -file ${OUTPUT_FILE_SPV} -spirv_input -device ${DEFAULT_SUPPORTED_${gen_type}_${platform_type}_PLATFORM} ${builtin_options} -${bits} -output ${mode}_${BASENAME}_${REVISION_ID} -out_dir ${OUTPUTDIR} -revision_id ${REVISION_ID} ${INTERNAL_OPTIONS} -options "$" WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} DEPENDS ${OUTPUT_FILE_SPV} ocloc copy_compiler_files ) @@ -109,18 +98,6 @@ if(NOT NEO_DISABLE_BUILTINS_COMPILATION) endfunction() function(generate_cpp_spirv builtin) - if(NOT DEFINED cloc_cmd_prefix) - if(WIN32) - set(cloc_cmd_prefix $) - else() - if(DEFINED NEO__IGC_LIBRARY_PATH) - set(cloc_cmd_prefix LD_LIBRARY_PATH=${NEO__IGC_LIBRARY_PATH}:$ $) - else() - set(cloc_cmd_prefix LD_LIBRARY_PATH=$ $) - endif() - endif() - endif() - get_filename_component(BASENAME ${builtin} NAME_WE) get_filename_component(DIR ${builtin} DIRECTORY) @@ -138,7 +115,7 @@ if(NOT NEO_DISABLE_BUILTINS_COMPILATION) set(OUTPUT_LIST_CPP_FILES ${OUTPUT_LIST_CPP_FILES} ${OUTPUT_FILE_CPP} PARENT_SCOPE) add_custom_command( OUTPUT ${GENERATED_SPV_INPUT} - COMMAND ${cloc_cmd_prefix} -q -spv_only -file ${INPUT_FILENAME} -out_dir ${OUTPUTDIR} -output_no_suffix -options "-cl-kernel-arg-info" + COMMAND ocloc -q -spv_only -file ${INPUT_FILENAME} -out_dir ${OUTPUTDIR} -output_no_suffix -options "-cl-kernel-arg-info" WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} DEPENDS ${INPUT_FILENAME} ocloc copy_compiler_files ) diff --git a/shared/test/common/test_files/CMakeLists.txt b/shared/test/common/test_files/CMakeLists.txt index 4225a3bcd8964..5790bc99077c4 100644 --- a/shared/test/common/test_files/CMakeLists.txt +++ b/shared/test/common/test_files/CMakeLists.txt @@ -5,17 +5,6 @@ # set(SHARED_TEST_PROJECTS_SUB_FOLDER "prepare test files") -if(NOT DEFINED cloc_cmd_prefix) - if(WIN32) - set(cloc_cmd_prefix ocloc) - else() - if(DEFINED NEO__IGC_LIBRARY_PATH) - set(cloc_cmd_prefix LD_LIBRARY_PATH=${NEO__IGC_LIBRARY_PATH}:$ $) - else() - set(cloc_cmd_prefix LD_LIBRARY_PATH=$ $) - endif() - endif() -endif() function(compile_kernels_gen platform_name_with_type revision_id platform_name suffix) @@ -37,7 +26,7 @@ function(compile_kernels_gen platform_name_with_type revision_id platform_name s add_custom_command( OUTPUT ${output_files} - COMMAND ${cloc_cmd_prefix} -file ${filename} -device ${platform_name} -${NEO_BITS} -out_dir ${outputdir} -revision_id ${revision_id} + COMMAND ocloc -file ${filename} -device ${platform_name} -${NEO_BITS} -out_dir ${outputdir} -revision_id ${revision_id} WORKING_DIRECTORY ${workdir} DEPENDS ${filepath} ocloc copy_compiler_files )