mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-21 09:14:47 +08:00
Add support for new GTPin loading logic in OCL path, similar to existing in L0 - invoking exposed, dedicated API call (OpenGTPinOCL). - Move logic to shared, including unit tests - Check whether instrumentation is required on context creation and if yes, make a call to OpenGTPinOCL function. Handle potential errors gracefully without exiting. Signed-off-by: Kacper Nowak <kacper.nowak@intel.com>
24 lines
495 B
C++
24 lines
495 B
C++
/*
|
|
* Copyright (C) 2020-2023 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
#include "shared/source/os_interface/os_library.h"
|
|
|
|
namespace NEO {
|
|
|
|
class PinContext {
|
|
public:
|
|
static bool init(const std::string >PinOpenFunctionName);
|
|
using OsLibraryLoadPtr = std::add_pointer<NEO::OsLibrary *(const std::string &)>::type;
|
|
static OsLibraryLoadPtr osLibraryLoadFunction;
|
|
|
|
private:
|
|
static const std::string gtPinLibraryFilename;
|
|
};
|
|
|
|
} // namespace NEO
|