BDFID (BusID/DeviceID/FunctionID) support.

Except FunctionID (or DomainID in CUDA) support, because cudaDeviceProp::pciDomainID is not reported by CUDA.
Этот коммит содержится в:
Evgeny Mankov
2016-02-11 22:26:01 +03:00
родитель 1a8bd21eb6
Коммит 33f60c300d
4 изменённых файлов: 23 добавлений и 3 удалений
+4
Просмотреть файл
@@ -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;
/**