BDFID (BusID/DeviceID/FunctionID) support.

Except FunctionID (or DomainID in CUDA) support, because cudaDeviceProp::pciDomainID is not reported by CUDA.


[ROCm/hip commit: 33f60c300d]
Tento commit je obsažen v:
Evgeny Mankov
2016-02-11 22:26:01 +03:00
rodič 18119645ab
revize 4eade0ce83
4 změnil soubory, kde provedl 23 přidání a 3 odebrání
+4
Zobrazit soubor
@@ -91,6 +91,8 @@ typedef struct hipDeviceProp_t {
int clockInstructionRate; ///< Frequency in khz of the timer used by the device-side "clock*" instructions. New for HIP.
hipDeviceArch_t arch; ///< Architectural feature flags. New for HIP.
int concurrentKernels; ///< Device can possibly execute multiple kernels concurrently.
int pciBusID; ///< PCI Bus ID.
int pciDeviceID; ///< PCI Device ID.
} hipDeviceProp_t;
@@ -146,6 +148,8 @@ typedef enum hipDeviceAttribute_t {
hipDeviceAttributeMaxThreadsPerMultiProcessor, ///< Maximum resident threads per multiprocessor.
hipDeviceAttributeComputeCapabilityMajor, ///< Major compute capability version number.
hipDeviceAttributeComputeCapabilityMinor, ///< Minor compute capability version number.
hipDeviceAttributePciBusId, ///< PCI Bus ID.
hipDeviceAttributePciDeviceId, ///< PCI Device ID.
} hipDeviceAttribute_t;
/**