Files
compute-runtime/shared/source/os_interface/linux/pci_path.h
Joshua Santosh Ranjan 05a150f49f L0 Core Add Support For pci_speed_ext
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>
2022-03-16 22:47:59 +01:00

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