mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00

- aub_tests started with "--tbx" option connects to TBX server - CSR is created in dual mode: TBX + AUB to dump aub file - with this enhancement it is possible to debug aub tests live Change-Id: I0302f5f4bac4c293661a149f64888770dd49343c
20 lines
415 B
C++
20 lines
415 B
C++
/*
|
|
* Copyright (C) 2018 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#include "runtime/tbx/tbx_sockets_imp.h"
|
|
#include "unit_tests/mocks/mock_tbx_sockets.h"
|
|
#include "unit_tests/tests_configuration.h"
|
|
|
|
namespace OCLRT {
|
|
TbxSockets *TbxSockets::create() {
|
|
if (testMode == TestMode::AubTestsWithTbx) {
|
|
return new TbxSocketsImp;
|
|
}
|
|
return new MockTbxSockets;
|
|
}
|
|
} // namespace OCLRT
|