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

This patch adds support for reading PCI bandwidth, generation and linkwidth information from sysfs nodes for the linux platform. Related-To: LOCI-2969 Signed-off-by: Joshua Santosh Ranjan <joshua.santosh.ranjan@intel.com>
19 lines
347 B
C++
19 lines
347 B
C++
/*
|
|
* Copyright (C) 2021-2022 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <optional>
|
|
#include <string>
|
|
|
|
namespace NEO {
|
|
|
|
std::optional<std::string> getPciPath(int deviceFd);
|
|
std::optional<std::string> getPciLinkPath(int deviceFd);
|
|
std::optional<std::string> getPciRootPath(int deviceFd);
|
|
|
|
} // namespace NEO
|