mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-08 22:12:59 +08:00
Reorganization directory structure [1/n]
Change-Id: Id1a94577437a4826a32411869f516fec20314ec0
This commit is contained in:
33
opencl/source/aub_mem_dump/aub_stream_stubs.cpp
Normal file
33
opencl/source/aub_mem_dump/aub_stream_stubs.cpp
Normal file
@@ -0,0 +1,33 @@
|
||||
/*
|
||||
* Copyright (C) 2018-2020 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
*/
|
||||
|
||||
#include "third_party/aub_stream/headers/aub_manager.h"
|
||||
#include "third_party/aub_stream/headers/aubstream.h"
|
||||
|
||||
namespace aub_stream_stubs {
|
||||
uint16_t tbxServerPort = 4321;
|
||||
std::string tbxServerIp = "127.0.0.1";
|
||||
} // namespace aub_stream_stubs
|
||||
|
||||
namespace aub_stream {
|
||||
|
||||
AubManager *AubManager::create(uint32_t productFamily, uint32_t devicesCount, uint64_t memoryBankSizeInGB, bool localMemorySupported, uint32_t streamMode) {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
extern "C" {
|
||||
void injectMMIOList(MMIOList mmioList){};
|
||||
void setTbxServerPort(uint16_t port) { aub_stream_stubs::tbxServerPort = port; };
|
||||
void setTbxServerIp(std::string server) {
|
||||
// better to avoid reassigning global variables which assume memory allocations since
|
||||
// we could step into false-positive memory leak detection with embedded leak check helper
|
||||
if (aub_stream_stubs::tbxServerIp != server)
|
||||
aub_stream_stubs::tbxServerIp = server;
|
||||
};
|
||||
}
|
||||
|
||||
} // namespace aub_stream
|
||||
Reference in New Issue
Block a user