mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-07 12:42:54 +08:00
Add xe_hp_sdv unit test target + minor test fixes
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
29580e53ec
commit
e880cf2ad6
@@ -43,7 +43,6 @@ set(RUNTIME_SRCS_HELPERS_BASE
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/per_thread_data.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/properties_helper.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/properties_helper.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}${BRANCH_DIR_SUFFIX}/queue_helpers.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/queue_helpers.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/sampler_helpers.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/surface_formats.cpp
|
||||
|
||||
@@ -1,20 +0,0 @@
|
||||
/*
|
||||
* Copyright (C) 2018-2021 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
*/
|
||||
|
||||
#include "opencl/source/helpers/queue_helpers.h"
|
||||
|
||||
namespace NEO {
|
||||
bool isCommandWithoutKernel(uint32_t commandType) {
|
||||
return ((commandType == CL_COMMAND_BARRIER) ||
|
||||
(commandType == CL_COMMAND_MARKER) ||
|
||||
(commandType == CL_COMMAND_MIGRATE_MEM_OBJECTS) ||
|
||||
(commandType == CL_COMMAND_SVM_FREE) ||
|
||||
(commandType == CL_COMMAND_SVM_MAP) ||
|
||||
(commandType == CL_COMMAND_SVM_MIGRATE_MEM) ||
|
||||
(commandType == CL_COMMAND_SVM_UNMAP));
|
||||
}
|
||||
} // namespace NEO
|
||||
@@ -25,7 +25,16 @@ inline void releaseVirtualEvent(CommandQueue &commandQueue) {
|
||||
inline void releaseVirtualEvent(DeviceQueue &commandQueue) {
|
||||
}
|
||||
|
||||
bool isCommandWithoutKernel(uint32_t commandType);
|
||||
inline bool isCommandWithoutKernel(uint32_t commandType) {
|
||||
return ((commandType == CL_COMMAND_BARRIER) ||
|
||||
(commandType == CL_COMMAND_MARKER) ||
|
||||
(commandType == CL_COMMAND_MIGRATE_MEM_OBJECTS) ||
|
||||
(commandType == CL_COMMAND_RESOURCE_BARRIER) ||
|
||||
(commandType == CL_COMMAND_SVM_FREE) ||
|
||||
(commandType == CL_COMMAND_SVM_MAP) ||
|
||||
(commandType == CL_COMMAND_SVM_MIGRATE_MEM) ||
|
||||
(commandType == CL_COMMAND_SVM_UNMAP));
|
||||
}
|
||||
|
||||
template <typename QueueType>
|
||||
void retainQueue(cl_command_queue commandQueue, cl_int &retVal) {
|
||||
|
||||
@@ -150,6 +150,13 @@ void XE_HP_SDV_CONFIG::setupHardwareInfoMultiTile(HardwareInfo *hwInfo, bool set
|
||||
gtSysInfo->MaxEuPerSubSlice = 40;
|
||||
gtSysInfo->MaxSlicesSupported = 1;
|
||||
gtSysInfo->MaxSubSlicesSupported = 1;
|
||||
|
||||
gtSysInfo->L3BankCount = 1;
|
||||
|
||||
gtSysInfo->CCSInfo.IsValid = true;
|
||||
gtSysInfo->CCSInfo.NumberOfCCSEnabled = 1;
|
||||
|
||||
hwInfo->featureTable.ftrBcsInfo = 1;
|
||||
}
|
||||
|
||||
if (setupFeatureTableAndWorkaroundTable) {
|
||||
|
||||
Reference in New Issue
Block a user