mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-20 00:24:58 +08:00
build: disable aub tests compilation by default
aub tests compilation can be enabled with cmake flag NEO_SKIP_AUB_TESTS=0 aub tests execution can be enabled with cmake flag NEO_SKIP_AUB_TEST_RUN=0 enabled aub tests execution forces compilation of aub tests targets Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
c3546f9e62
commit
6095efa7d3
@@ -256,10 +256,21 @@ if(NEO_SKIP_UNIT_TESTS)
|
|||||||
set(NEO_SKIP_L0_BLACK_BOX_TESTS TRUE)
|
set(NEO_SKIP_L0_BLACK_BOX_TESTS TRUE)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(DEFINED DO_NOT_RUN_AUB_TESTS)
|
if(NOT DEFINED NEO_SKIP_AUB_TESTS_RUN)
|
||||||
set(NEO_SKIP_AUB_TEST_RUN ${DO_NOT_RUN_AUB_TESTS})
|
set(NEO_SKIP_AUB_TESTS_RUN TRUE)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(NOT DEFINED NEO_SKIP_AUB_TESTS)
|
||||||
|
set(NEO_SKIP_AUB_TESTS TRUE)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if(NOT NEO_SKIP_AUB_TESTS_RUN)
|
||||||
|
set(NEO_SKIP_AUB_TESTS FALSE)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
message(STATUS "NEO_SKIP_AUB_TESTS: ${NEO_SKIP_AUB_TESTS}")
|
||||||
|
message(STATUS "NEO_SKIP_AUB_TESTS_RUN: ${NEO_SKIP_AUB_TESTS_RUN}")
|
||||||
|
|
||||||
# Set our build directory
|
# Set our build directory
|
||||||
if(NOT DEFINED NEO_BUILD_DIR)
|
if(NOT DEFINED NEO_BUILD_DIR)
|
||||||
set(NEO_BUILD_DIR ${CMAKE_BINARY_DIR})
|
set(NEO_BUILD_DIR ${CMAKE_BINARY_DIR})
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Copyright (C) 2020-2023 Intel Corporation
|
# Copyright (C) 2020-2024 Intel Corporation
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: MIT
|
# SPDX-License-Identifier: MIT
|
||||||
#
|
#
|
||||||
@@ -47,7 +47,7 @@ if(NOT NEO_SKIP_OCL_UNIT_TESTS OR NOT NEO_SKIP_L0_UNIT_TESTS)
|
|||||||
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(NOT NEO_SKIP_OCL_UNIT_TESTS)
|
if(TARGET igdrcl_aub_tests)
|
||||||
add_dependencies(aub_tests igdrcl_aub_tests)
|
add_dependencies(aub_tests igdrcl_aub_tests)
|
||||||
add_dependencies(run_${product}_${revision_id}_aub_tests prepare_test_kernels_for_ocl)
|
add_dependencies(run_${product}_${revision_id}_aub_tests prepare_test_kernels_for_ocl)
|
||||||
|
|
||||||
@@ -71,7 +71,7 @@ if(NOT NEO_SKIP_OCL_UNIT_TESTS)
|
|||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(NOT NEO_SKIP_L0_UNIT_TESTS AND BUILD_WITH_L0)
|
if(TARGET ze_intel_gpu_aub_tests)
|
||||||
add_dependencies(aub_tests ze_intel_gpu_aub_tests)
|
add_dependencies(aub_tests ze_intel_gpu_aub_tests)
|
||||||
add_dependencies(run_${product}_${revision_id}_aub_tests prepare_test_kernels_for_l0)
|
add_dependencies(run_${product}_${revision_id}_aub_tests prepare_test_kernels_for_l0)
|
||||||
|
|
||||||
@@ -95,7 +95,7 @@ if(NOT NEO_SKIP_L0_UNIT_TESTS AND BUILD_WITH_L0)
|
|||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(DO_NOT_RUN_AUB_TESTS)
|
if(NEO_SKIP_AUB_TESTS_RUN)
|
||||||
set_target_properties(run_${product}_${revision_id}_aub_tests PROPERTIES
|
set_target_properties(run_${product}_${revision_id}_aub_tests PROPERTIES
|
||||||
EXCLUDE_FROM_DEFAULT_BUILD TRUE
|
EXCLUDE_FROM_DEFAULT_BUILD TRUE
|
||||||
EXCLUDE_FROM_ALL TRUE
|
EXCLUDE_FROM_ALL TRUE
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
# SPDX-License-Identifier: MIT
|
# SPDX-License-Identifier: MIT
|
||||||
#
|
#
|
||||||
|
|
||||||
if(DEFINED AUB_STREAM_PROJECT_NAME)
|
if(NOT NEO_SKIP_AUB_TESTS AND DEFINED AUB_STREAM_PROJECT_NAME)
|
||||||
link_libraries(${ASAN_LIBS} ${TSAN_LIBS})
|
link_libraries(${ASAN_LIBS} ${TSAN_LIBS})
|
||||||
|
|
||||||
set(TARGET_NAME ${TARGET_NAME_L0}_aub_tests)
|
set(TARGET_NAME ${TARGET_NAME_L0}_aub_tests)
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ components:
|
|||||||
branch: master
|
branch: master
|
||||||
dest_dir: infra
|
dest_dir: infra
|
||||||
fetch_tags: true
|
fetch_tags: true
|
||||||
revision: v5869
|
revision: v5872
|
||||||
type: git
|
type: git
|
||||||
internal:
|
internal:
|
||||||
branch: master
|
branch: master
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
#
|
#
|
||||||
# Copyright (C) 2018-2023 Intel Corporation
|
# Copyright (C) 2018-2024 Intel Corporation
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: MIT
|
# SPDX-License-Identifier: MIT
|
||||||
#
|
#
|
||||||
|
|
||||||
if(DEFINED AUB_STREAM_PROJECT_NAME)
|
if(NOT NEO_SKIP_AUB_TESTS AND DEFINED AUB_STREAM_PROJECT_NAME)
|
||||||
project(igdrcl_aub_tests)
|
project(igdrcl_aub_tests)
|
||||||
|
|
||||||
set(OPENCL_AUB_TEST_DIR ${CMAKE_CURRENT_SOURCE_DIR})
|
set(OPENCL_AUB_TEST_DIR ${CMAKE_CURRENT_SOURCE_DIR})
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
#
|
#
|
||||||
# Copyright (C) 2021-2023 Intel Corporation
|
# Copyright (C) 2021-2024 Intel Corporation
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: MIT
|
# SPDX-License-Identifier: MIT
|
||||||
#
|
#
|
||||||
@@ -13,6 +13,7 @@ REPO_DIR="$( cd "$( dirname "${DIR}/../../../../" )" && pwd )"
|
|||||||
|
|
||||||
BUILD_DIR="${REPO_DIR}/../build_opencl"
|
BUILD_DIR="${REPO_DIR}/../build_opencl"
|
||||||
NEO_SKIP_UNIT_TESTS=${NEO_SKIP_UNIT_TESTS:-FALSE}
|
NEO_SKIP_UNIT_TESTS=${NEO_SKIP_UNIT_TESTS:-FALSE}
|
||||||
|
NEO_SKIP_AUB_TESTS_RUN=${NEO_SKIP_AUB_TESTS_RUN:-TRUE}
|
||||||
NEO_DISABLE_BUILTINS_COMPILATION=${NEO_DISABLE_BUILTINS_COMPILATION:-FALSE}
|
NEO_DISABLE_BUILTINS_COMPILATION=${NEO_DISABLE_BUILTINS_COMPILATION:-FALSE}
|
||||||
SPEC_FILE="${SPEC_FILE:-${OS_TYPE}}"
|
SPEC_FILE="${SPEC_FILE:-${OS_TYPE}}"
|
||||||
|
|
||||||
@@ -27,7 +28,7 @@ LOG_CCACHE_STATS="${LOG_CCACHE_STATS:-0}"
|
|||||||
|
|
||||||
export BUILD_ID="${BUILD_ID:-1}"
|
export BUILD_ID="${BUILD_ID:-1}"
|
||||||
export CMAKE_BUILD_TYPE="${CMAKE_BUILD_TYPE:-Release}"
|
export CMAKE_BUILD_TYPE="${CMAKE_BUILD_TYPE:-Release}"
|
||||||
export DO_NOT_RUN_AUB_TESTS="${DO_NOT_RUN_AUB_TESTS:-FALSE}"
|
export NEO_SKIP_AUB_TESTS_RUN="${NEO_SKIP_AUB_TESTS_RUN:-TRUE}"
|
||||||
|
|
||||||
source "${REPO_DIR}/scripts/packaging/${BRANCH_SUFFIX}/functions.sh"
|
source "${REPO_DIR}/scripts/packaging/${BRANCH_SUFFIX}/functions.sh"
|
||||||
source "${REPO_DIR}/scripts/packaging/${BRANCH_SUFFIX}/opencl/opencl.sh"
|
source "${REPO_DIR}/scripts/packaging/${BRANCH_SUFFIX}/opencl/opencl.sh"
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ NEO_DISABLE_BUILTINS_COMPILATION ?= FALSE
|
|||||||
RELEASE_WITH_REGKEYS ?= FALSE
|
RELEASE_WITH_REGKEYS ?= FALSE
|
||||||
IGDRCL_FORCE_USE_LIBVA ?= FALSE
|
IGDRCL_FORCE_USE_LIBVA ?= FALSE
|
||||||
NEO_SKIP_UNIT_TESTS ?= FALSE
|
NEO_SKIP_UNIT_TESTS ?= FALSE
|
||||||
|
NEO_SKIP_AUB_TESTS_RUN ?= TRUE
|
||||||
NEO_ENABLE_i915_PRELIM_DETECTION ?= TRUE
|
NEO_ENABLE_i915_PRELIM_DETECTION ?= TRUE
|
||||||
NEO_ENABLE_XE_EU_DEBUG_SUPPORT ?= FALSE
|
NEO_ENABLE_XE_EU_DEBUG_SUPPORT ?= FALSE
|
||||||
NEO_FORCE_USE_AUB_STREAM ?= TRUE
|
NEO_FORCE_USE_AUB_STREAM ?= TRUE
|
||||||
@@ -17,7 +18,7 @@ override_dh_auto_configure:
|
|||||||
-DNEO_OCL_VERSION_MAJOR=${NEO_OCL_VERSION_MAJOR} \
|
-DNEO_OCL_VERSION_MAJOR=${NEO_OCL_VERSION_MAJOR} \
|
||||||
-DNEO_OCL_VERSION_MINOR=${NEO_OCL_VERSION_MINOR} \
|
-DNEO_OCL_VERSION_MINOR=${NEO_OCL_VERSION_MINOR} \
|
||||||
-DNEO_VERSION_BUILD=${NEO_OCL_VERSION_BUILD} \
|
-DNEO_VERSION_BUILD=${NEO_OCL_VERSION_BUILD} \
|
||||||
-DDO_NOT_RUN_AUB_TESTS=${DO_NOT_RUN_AUB_TESTS} \
|
-DNEO_SKIP_AUB_TESTS_RUN=${NEO_SKIP_AUB_TESTS_RUN} \
|
||||||
-DNEO_SKIP_UNIT_TESTS=${NEO_SKIP_UNIT_TESTS} \
|
-DNEO_SKIP_UNIT_TESTS=${NEO_SKIP_UNIT_TESTS} \
|
||||||
-DNEO_ENABLE_i915_PRELIM_DETECTION=${NEO_ENABLE_i915_PRELIM_DETECTION} \
|
-DNEO_ENABLE_i915_PRELIM_DETECTION=${NEO_ENABLE_i915_PRELIM_DETECTION} \
|
||||||
-DNEO_ENABLE_XE_EU_DEBUG_SUPPORT=${NEO_ENABLE_XE_EU_DEBUG_SUPPORT} \
|
-DNEO_ENABLE_XE_EU_DEBUG_SUPPORT=${NEO_ENABLE_XE_EU_DEBUG_SUPPORT} \
|
||||||
|
|||||||
Reference in New Issue
Block a user