mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-19 06:24:51 +08:00
refactor: Skip test without cooperative engine
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
8e5f9e72c8
commit
318616b3b1
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2019-2023 Intel Corporation
|
||||
* Copyright (C) 2019-2024 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -76,7 +76,12 @@ class SyncBufferHandlerTest : public SyncBufferEnqueueHandlerTest {
|
||||
auto &hwInfo = pClDevice->getHardwareInfo();
|
||||
auto &productHelper = pClDevice->getProductHelper();
|
||||
if (productHelper.isCooperativeEngineSupported(hwInfo)) {
|
||||
commandQueue->gpgpuEngine = &pClDevice->getEngine(aub_stream::EngineType::ENGINE_CCS, EngineUsage::cooperative);
|
||||
auto engine = pClDevice->device.tryGetEngine(aub_stream::EngineType::ENGINE_CCS, EngineUsage::cooperative);
|
||||
if (engine) {
|
||||
commandQueue->gpgpuEngine = engine;
|
||||
} else {
|
||||
GTEST_SKIP();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user