cuda-api-wrappers
Thin C++-flavored wrappers for the CUDA Runtime API
|
Location "coordinates" for a CUDA device on a PCIe bus. More...
#include <pci_id.hpp>
Public Member Functions | |
operator::std::string () const | |
Static Public Member Functions | |
static pci_location_t | parse (const ::std::string &id_str) |
Parse a string representation of a device's PCI location. More... | |
static pci_location_t | parse (const char *id_str) |
Parse a string representation of a device's PCI location. More... | |
Public Attributes | |
optional< int > | domain |
The four fields of the PCI configuration space. More... | |
int | bus |
int | device |
optional< int > | function |
Location "coordinates" for a CUDA device on a PCIe bus.
|
static |
Parse a string representation of a device's PCI location.
domain::bus::device.function domain::bus::device bus::device.function
and any of them can be used.
|
static |
Parse a string representation of a device's PCI location.
domain::bus::device.function domain::bus::device bus::device.function
and any of them can be used.
optional<int> cuda::device::pci_location_t::domain |
The four fields of the PCI configuration space.